[System.Security.SecurityCritical] // auto-generated
private void PerformSecurityCheck(Module m, ref StackCrawlMark stackMark, bool skipVisibility)
{
-#if !FEATURE_CORECLR
if (m == null)
throw new ArgumentNullException("m");
Contract.EndContractBlock();
+#if !FEATURE_CORECLR
RuntimeModule rtModule;
ModuleBuilder mb = m as ModuleBuilder;
[System.Security.SecurityCritical] // auto-generated
private void PerformSecurityCheck(Type owner, ref StackCrawlMark stackMark, bool skipVisibility)
{
-#if !FEATURE_CORECLR
if (owner == null)
throw new ArgumentNullException("owner");
+#if !FEATURE_CORECLR
RuntimeType rtOwner = owner as RuntimeType;
if (rtOwner == null)