Author: kornelpal
Date: 2006-10-17 11:19:11 -0400 (Tue, 17 Oct 2006)
New Revision: 66749
Modified:
trunk/mcs/class/corlib/System.Reflection/ChangeLog
trunk/mcs/class/corlib/System.Reflection/FieldInfo.cs
trunk/mcs/class/corlib/System.Reflection/ParameterInfo.cs
Log:
FieldInfo.cs: Added GetRawConstantValue (). Note that throwing a
NotSupportedException is the proper implementation.; ParameterInfo.cs: Use
Attributes in Is... properties on profile 2.0 that is expected by subclasses.
Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog 2006-10-17 15:00:44 UTC
(rev 66748)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog 2006-10-17 15:19:11 UTC
(rev 66749)
@@ -1,3 +1,10 @@
+2006-10-17 Kornél Pál <[EMAIL PROTECTED]>
+
+ * FieldInfo.cs: Added GetRawConstantValue (). Note that throwing a
+ NotSupportedException is the proper implementation.
+ * ParameterInfo.cs: Use Attributes in Is... properties on profile 2.0
+ that is expected by subclasses.
+
2006-10-14 Gert Driesen <[EMAIL PROTECTED]>
* AssemblyName.cs: No need to convert filename to absolute path before
Modified: trunk/mcs/class/corlib/System.Reflection/FieldInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/FieldInfo.cs 2006-10-17
15:00:44 UTC (rev 66748)
+++ trunk/mcs/class/corlib/System.Reflection/FieldInfo.cs 2006-10-17
15:19:11 UTC (rev 66749)
@@ -233,6 +233,11 @@
public virtual Type[] GetRequiredCustomModifiers () {
throw new NotImplementedException ();
}
+
+ public virtual object GetRawConstantValue ()
+ {
+ throw new NotSupportedException ("This non-CLS method
is not implemented.");
+ }
#endif
void _FieldInfo.GetIDsOfNames ([In] ref Guid riid, IntPtr
rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
Modified: trunk/mcs/class/corlib/System.Reflection/ParameterInfo.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ParameterInfo.cs 2006-10-17
15:00:44 UTC (rev 66748)
+++ trunk/mcs/class/corlib/System.Reflection/ParameterInfo.cs 2006-10-17
15:19:11 UTC (rev 66749)
@@ -103,23 +103,53 @@
}
public bool IsIn {
- get {return (AttrsImpl & ParameterAttributes.In) != 0;}
+ get {
+#if NET_2_0
+ return (Attributes & ParameterAttributes.In) !=
0;
+#else
+ return (AttrsImpl & ParameterAttributes.In) !=
0;
+#endif
+ }
}
public bool IsLcid {
- get {return (AttrsImpl & ParameterAttributes.Lcid) !=
0;}
+ get {
+#if NET_2_0
+ return (Attributes & ParameterAttributes.Lcid)
!= 0;
+#else
+ return (AttrsImpl & ParameterAttributes.Lcid)
!= 0;
+#endif
+ }
}
public bool IsOptional {
- get {return (AttrsImpl & ParameterAttributes.Optional)
!= 0;}
+ get {
+#if NET_2_0
+ return (Attributes &
ParameterAttributes.Optional) != 0;
+#else
+ return (AttrsImpl &
ParameterAttributes.Optional) != 0;
+#endif
+ }
}
public bool IsOut {
- get {return (AttrsImpl & ParameterAttributes.Out) != 0;}
+ get {
+#if NET_2_0
+ return (Attributes & ParameterAttributes.Out)
!= 0;
+#else
+ return (AttrsImpl & ParameterAttributes.Out) !=
0;
+#endif
+ }
}
public bool IsRetval {
- get {return (AttrsImpl & ParameterAttributes.Retval) !=
0;}
+ get {
+#if NET_2_0
+ return (Attributes &
ParameterAttributes.Retval) != 0;
+#else
+ return (AttrsImpl & ParameterAttributes.Retval)
!= 0;
+#endif
+ }
}
public virtual MemberInfo Member {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches