2004-04-07 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Wed, 7 Apr 2004 17:32:21 +0000 (17:32 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 7 Apr 2004 17:32:21 +0000 (17:32 -0000)
* GenericTypeParameterBuilder.cs
(Mono_SetConstructorConstraint): New public method.

svn path=/trunk/mcs/; revision=25170

mcs/class/corlib/System.Reflection.Emit/ChangeLog
mcs/class/corlib/System.Reflection.Emit/GenericTypeParameterBuilder.cs

index 837d0d2414f749bb13d79e9b3ba652f065fe61d3..6a41ed91f5c09f4c2d906ea05bdad0f780f931ba 100644 (file)
@@ -3,6 +3,11 @@
        * MethodBuilder.cs, TypeBuilder.cs: always have 
        slot for generic_params for consistent offsets.
 
+2004-04-07  Martin Baulig  <martin@ximian.com>
+
+       * GenericTypeParameterBuilder.cs
+       (Mono_SetConstructorConstraint): New public method.     
+
 2004-04-07  Martin Baulig  <martin@ximian.com>
 
        * GenericTypeParameterBuilder.cs: New file.
index daf50bbc95e13a982040599db9d6a8485aa548f6..27d05bf1cd5ed652cd76b4ee55b64d9b92cb12d0 100644 (file)
@@ -25,6 +25,7 @@ namespace System.Reflection.Emit
                private int index;
                private Type base_type;
                private Type[] iface_constraints;
+               private bool has_ctor_constraint;
        #endregion
 
                public void SetBaseTypeConstraint (Type base_type_constraint)
@@ -37,6 +38,11 @@ namespace System.Reflection.Emit
                        this.iface_constraints = iface_constraints;
                }
 
+               public void Mono_SetConstructorConstraint ()
+               {
+                       has_ctor_constraint = true;
+               }
+
                internal GenericTypeParameterBuilder (TypeBuilder tbuilder,
                                                      MethodBuilder mbuilder,
                                                      string name, int index)
@@ -184,7 +190,7 @@ namespace System.Reflection.Emit
                {
 #warning "FIXME"
                        return false;
-                       return base_type != null ? base_type.IsValueType : false;
+                       // return base_type != null ? base_type.IsValueType : false;
                }
                
                public override object InvokeMember (string name, BindingFlags invokeAttr,