diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2016-12-27 16:46:08 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2016-12-27 16:46:08 +0900 |
commit | db20f3f1bb8595633a7e16c8900fd401a453a6b5 (patch) | |
tree | e5435159cd1bf0519276363a6fe1663d1721bed3 /src/mscorlib/src/System/Reflection/Emit/ModuleBuilderData.cs | |
parent | 4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (diff) | |
download | coreclr-db20f3f1bb8595633a7e16c8900fd401a453a6b5.tar.gz coreclr-db20f3f1bb8595633a7e16c8900fd401a453a6b5.tar.bz2 coreclr-db20f3f1bb8595633a7e16c8900fd401a453a6b5.zip |
Imported Upstream version 1.0.0.9127upstream/1.0.0.9127
Diffstat (limited to 'src/mscorlib/src/System/Reflection/Emit/ModuleBuilderData.cs')
-rw-r--r-- | src/mscorlib/src/System/Reflection/Emit/ModuleBuilderData.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mscorlib/src/System/Reflection/Emit/ModuleBuilderData.cs b/src/mscorlib/src/System/Reflection/Emit/ModuleBuilderData.cs index 2bec04abe5..96e60d9a4e 100644 --- a/src/mscorlib/src/System/Reflection/Emit/ModuleBuilderData.cs +++ b/src/mscorlib/src/System/Reflection/Emit/ModuleBuilderData.cs @@ -9,6 +9,7 @@ namespace System.Reflection.Emit { using System; + using System.Diagnostics; using System.Diagnostics.Contracts; using System.Globalization; using System.IO; @@ -21,7 +22,6 @@ namespace System.Reflection.Emit [Serializable] internal class ModuleBuilderData { - [System.Security.SecurityCritical] // auto-generated internal ModuleBuilderData(ModuleBuilder module, String strModuleName, String strFileName, int tkFile) { m_globalTypeBuilder = new TypeBuilder(module); @@ -32,7 +32,6 @@ namespace System.Reflection.Emit } // Initialize module and file names. - [System.Security.SecurityCritical] // auto-generated private void InitNames(String strModuleName, String strFileName) { m_strModuleName = strModuleName; @@ -55,10 +54,9 @@ namespace System.Reflection.Emit // This is a method for changing module and file name of the manifest module (created by default for // each assembly). - [System.Security.SecurityCritical] // auto-generated internal virtual void ModifyModuleName(String strModuleName) { - Contract.Assert(m_strModuleName == AssemblyBuilder.MANIFEST_MODULE_NAME, "Changing names for non-manifest module"); + Debug.Assert(m_strModuleName == AssemblyBuilder.MANIFEST_MODULE_NAME, "Changing names for non-manifest module"); InitNames(strModuleName, null /*strFileName*/); } |