[corlib] Implement MonoField Module property
authorJb Evain <jb@evain.net>
Tue, 12 May 2015 14:22:18 +0000 (16:22 +0200)
committerJb Evain <jb@evain.net>
Tue, 12 May 2015 14:22:18 +0000 (16:22 +0200)
mcs/class/corlib/System.Reflection/MonoField.cs

index 362c0405f2e00fb906cc4de04c3f62221c19c68c..8c6f92469380cc742e69ea9bce4f9d2d8003ba3c 100644 (file)
@@ -51,6 +51,12 @@ namespace System.Reflection {
                        }
                }
 
+               public override Module Module {
+                       get {
+                               return GetRuntimeModule ();
+                       }
+               }
+
                internal RuntimeType GetDeclaringTypeInternal ()
                {
                        return (RuntimeType) DeclaringType;
@@ -62,6 +68,11 @@ namespace System.Reflection {
                        }
                }
 
+               internal RuntimeModule GetRuntimeModule ()
+               {
+                       return GetDeclaringTypeInternal ().GetRuntimeModule ();
+               }
+
         #region ISerializable Implementation
         public void GetObjectData(SerializationInfo info, StreamingContext context)
         {