From 5744a3d7faf5f10ab968262e7548adfdc8e511cb Mon Sep 17 00:00:00 2001 From: Jb Evain Date: Tue, 12 May 2015 16:22:18 +0200 Subject: [PATCH] [corlib] Implement MonoField Module property --- mcs/class/corlib/System.Reflection/MonoField.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mcs/class/corlib/System.Reflection/MonoField.cs b/mcs/class/corlib/System.Reflection/MonoField.cs index 362c0405f2e..8c6f9246938 100644 --- a/mcs/class/corlib/System.Reflection/MonoField.cs +++ b/mcs/class/corlib/System.Reflection/MonoField.cs @@ -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) { -- 2.25.1