Remove mention of security transparency from message and comment (#18776)
authorJan Kotas <jkotas@microsoft.com>
Wed, 4 Jul 2018 09:19:38 +0000 (11:19 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Jul 2018 09:19:38 +0000 (11:19 +0200)
src/System.Private.CoreLib/Resources/Strings.resx
src/System.Private.CoreLib/src/System/Reflection/Emit/DynamicMethod.cs

index deab332..a1a386a 100644 (file)
     <value>Delegate to an instance method cannot have null 'this'.</value>
   </data>
   <data name="Arg_DlgtTargMeth" xml:space="preserve">
-    <value>Cannot bind to the target method because its signature or security transparency is not compatible with that of the delegate type.</value>
+    <value>Cannot bind to the target method because its signature is not compatible with that of the delegate type.</value>
   </data>
   <data name="Arg_DlgtTypeMis" xml:space="preserve">
     <value>Delegates must be of the same type.</value>
   <data name="InvalidOperation_ConstructorNotAllowedOnInterface" xml:space="preserve">
     <value>Interface cannot have constructors.</value>
   </data>
-  <data name="InvalidOperation_CriticalTransparentAreMutuallyExclusive" xml:space="preserve">
-    <value>SecurityTransparent and SecurityCritical attributes cannot be applied to the assembly scope at the same time.</value>
-  </data>
   <data name="InvalidOperation_DateTimeParsing" xml:space="preserve">
     <value>Internal Error in DateTime and Calendar operations.</value>
   </data>
index 99af844..ce329b5 100644 (file)
@@ -431,15 +431,6 @@ namespace System.Reflection.Emit
 
         public override MethodImplAttributes GetMethodImplementationFlags() { return m_dynMethod.GetMethodImplementationFlags(); }
 
-        //
-        // Security transparency accessors
-        //
-        // Since the dynamic method may not be JITed yet, we don't always have the runtime method handle
-        // which is needed to determine the official runtime transparency status of the dynamic method.  We
-        // fall back to saying that the dynamic method matches the transparency of its containing module
-        // until we get a JITed version, since dynamic methods cannot have attributes of their own.
-        //
-
         public override bool IsSecurityCritical
         {
             get { return true; }