[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-patches
Subject:    [Mono-patches] r47849 - trunk/mcs/class/corlib/System.Reflection
From:       "Carlos Alberto Cortes <is118149 () mail ! udlap ! mx>" <calberto () mono-cvs ! ximian ! com>
Date:       2005-07-29 21:23:18
Message-ID: 20050729212318.776A59472C () mono-cvs ! ximian ! com
[Download RAW message or body]

Author: calberto
Date: 2005-07-29 17:23:18 -0400 (Fri, 29 Jul 2005)
New Revision: 47849

Modified:
   trunk/mcs/class/corlib/System.Reflection/ChangeLog
   trunk/mcs/class/corlib/System.Reflection/CustomAttributeTypedArgument.cs
Log:
2005-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>

	* CustomAttributeTypedArgument: Return the name of the
	enum if the type is an enum in ToString ().
	


Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog	2005-07-29 20:41:43 UTC (rev \
                47848)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog	2005-07-29 21:23:18 UTC (rev \
47849) @@ -1,3 +1,8 @@
+2005-07-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+	* CustomAttributeTypedArgument: Return the name of the
+	enum if the type is an enum in ToString ().
+	
 2005-06-21  Sebastien Pouliot  <sebastien@ximian.com>
 
 	* Assembly.cs: Create a copy of the evidences and add an instance of 

Modified: trunk/mcs/class/corlib/System.Reflection/CustomAttributeTypedArgument.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/CustomAttributeTypedArgument.cs	2005-07-29 \
                20:41:43 UTC (rev 47848)
+++ trunk/mcs/class/corlib/System.Reflection/CustomAttributeTypedArgument.cs	2005-07-29 \
21:23:18 UTC (rev 47849) @@ -65,6 +65,8 @@
 				return "\"" + val + "\"";
 			if (argumentType == typeof (Type)) 
 				return "typeof (" + val + ")";
+			if (argumentType.IsEnum)
+				return "(" + argumentType.Name + ")" + val;
 
 			return val;
 		}

_______________________________________________
Mono-patches maillist  -  Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic