2002-05-24 Martin Baulig <martin@gnome.org>
authorMartin Baulig <martin@novell.com>
Fri, 24 May 2002 13:15:48 +0000 (13:15 -0000)
committerMartin Baulig <martin@novell.com>
Fri, 24 May 2002 13:15:48 +0000 (13:15 -0000)
* ParameterInfo.cs: Added internal constructor.

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

mcs/class/corlib/System.Reflection/ChangeLog
mcs/class/corlib/System.Reflection/ParameterInfo.cs

index 6715f9e028dc55e62f5d75e548c936198c6e2ac7..4ef24a52c4d7fc6e03a5d23fed1f1efc7fe1b409 100644 (file)
@@ -1,3 +1,6 @@
+2002-05-24  Martin Baulig  <martin@gnome.org>\r
+\r
+       * ParameterInfo.cs: Added internal constructor.\r
 \r
 Thu May 23 17:18:46 CEST 2002 Paolo Molaro <lupus@ximian.com>\r
 \r
index 69f296a945276417dd002fdfa956a8a16f23eb44..52702c9a9fcc2b44b29d25a159b24490da23be25 100644 (file)
@@ -4,6 +4,8 @@
 //
 // (C) 2001 Ximian, Inc.
 
+using System.Reflection.Emit;
+
 namespace System.Reflection
 {
        [Serializable]
@@ -18,6 +20,14 @@ namespace System.Reflection
 
                protected ParameterInfo () {
                }
+
+               internal ParameterInfo (ParameterBuilder pb, Type type, MemberInfo member) {
+                       this.ClassImpl = type;
+                       this.MemberImpl = member;
+                       this.NameImpl = pb.Name;
+                       this.PositionImpl = pb.Position;
+                       this.AttrsImpl = (ParameterAttributes) pb.Attributes;
+               }
                
                public virtual Type ParameterType {
                        get {return ClassImpl;}