57 instantiations of ReflectionPermission
mscorlib (25)
system\appdomain.cs (1)
188new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Assert();
system\delegateserializationholder.cs (2)
32new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand(); 248new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand();
system\diagnostics\eventing\eventsource.cs (1)
3804(new ReflectionPermission(ReflectionPermissionFlag.MemberAccess)).Assert();
system\diagnostics\stacktrace.cs (1)
134new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Assert();
system\reflection\emit\dynamicmethod.cs (3)
465new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand(); 502new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand(); 507new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand();
system\rttype.cs (1)
5390ps.AddPermission(new ReflectionPermission(ReflectionPermissionFlag.MemberAccess));
system\security\codeaccesssecurityengine.cs (1)
511demandSet.AddPermission(new ReflectionPermission(ReflectionPermissionFlag.RestrictedMemberAccess));
system\security\permissions\permissionattributes.cs (2)
506return new ReflectionPermission( PermissionState.Unrestricted ); 510return new ReflectionPermission( m_flag );
system\security\permissions\reflectionpermission.cs (5)
185return new ReflectionPermission( PermissionState.Unrestricted ); 190return(new ReflectionPermission(flag_union)); 242return new ReflectionPermission( newFlags ); 249return new ReflectionPermission(PermissionState.Unrestricted); 253return new ReflectionPermission((ReflectionPermissionFlag)m_flags);
system\security\permissiontoken.cs (2)
160s_reflectPerm = new ReflectionPermission(PermissionState.Unrestricted); 248s_reflectPerm = new ReflectionPermission(PermissionState.Unrestricted);
system\security\policy\applicationsecuritymanager.cs (1)
170new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Assert();
system\security\securitymanager.cs (1)
563new ReflectionPermission(PermissionState.Unrestricted),
system\security\util\xmlutil.cs (4)
305return new ReflectionPermission( permState ); 415new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Assert(); 487new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Assert(); 621new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Assert();
PresentationFramework (3)
src\Framework\MS\Internal\AppModel\Journaling.cs (1)
726new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Assert();
src\Framework\MS\Internal\AppModel\ReturnEventSaver.cs (1)
151new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Assert(); // BlessedAssert
src\Shared\MS\Internal\SecurityHelper.cs (1)
307_reflectionPermission = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess);
System (9)
compmod\system\componentmodel\IntSecurity.cs (1)
15public static readonly CodeAccessPermission FullReflection = new ReflectionPermission(PermissionState.Unrestricted);
misc\SecurityUtils.cs (2)
47memberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess); 56restrictedMemberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.RestrictedMemberAccess);
net\System\Net\HttpWebRequest.cs (1)
5453new ReflectionPermission(PermissionState.Unrestricted).Assert();
regex\system\text\regularexpressions\compiledregexrunnerfactory.cs (1)
31new ReflectionPermission(PermissionState.Unrestricted).Assert();
regex\system\text\regularexpressions\RegexCompiler.cs (4)
137new ReflectionPermission(PermissionState.Unrestricted).Assert(); 199new ReflectionPermission(PermissionState.Unrestricted).Assert(); 237new ReflectionPermission(PermissionState.Unrestricted).Assert(); 3082new ReflectionPermission(PermissionState.Unrestricted).Assert();
System.Activities (3)
System\Activities\Expressions\OperatorPermissionHelper.cs (1)
42ReflectionPermission reflectionMemberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess);
System\Activities\Runtime\CallbackWrapper.cs (1)
287myPermissionSet.AddPermission(new ReflectionPermission(ReflectionPermissionFlag.MemberAccess));
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
496ReflectionPermission reflectionPerm = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess);
System.AddIn (1)
System\Addin\Hosting\AddInServer.cs (1)
123permissionSet.AddPermission(new ReflectionPermission(PermissionState.Unrestricted));
System.Configuration (1)
System\Configuration\TypeUtil.cs (1)
252private static readonly ReflectionPermission s_memberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess);
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlCachedBuffer.cs (1)
138new System.Security.Permissions.ReflectionPermission(System.Security.Permissions.ReflectionPermissionFlag.MemberAccess).Assert();
System.Data.Entity (1)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (1)
568internal static readonly ReflectionPermission MemberAccessReflectionPermission = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess);
System.Data.Linq (2)
parent\parent\misc\SecurityUtils.cs (2)
47memberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess); 56restrictedMemberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.RestrictedMemberAccess);
System.Data.SqlXml (1)
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
48CreateModulePermissionSet.AddPermission(new ReflectionPermission(ReflectionPermissionFlag.MemberAccess));
System.Drawing (1)
commonui\System\Drawing\Printing\PrintDocument.cs (1)
137new ReflectionPermission(PermissionState.Unrestricted).Assert();
System.Runtime.Serialization (1)
System\Runtime\Serialization\Globals.cs (1)
1135memberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess);
System.Web (3)
IntSecurity.cs (1)
56_reflection = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess);
parent\parent\parent\Misc\SecurityUtils.cs (2)
47memberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess); 56restrictedMemberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.RestrictedMemberAccess);
System.Windows.Forms (2)
misc\SecurityUtils.cs (2)
47memberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess); 56restrictedMemberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.RestrictedMemberAccess);
System.Xml (3)
System\Xml\Xslt\XslCompiledTransform.cs (3)
58MemberAccessPermissionSet.AddPermission(new ReflectionPermission(ReflectionPermissionFlag.MemberAccess)); 279new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Assert(); 319new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand();
59 references to ReflectionPermission
mscorlib (16)
system\security\permissions\reflectionpermission.cs (11)
96m_flags = ReflectionPermission.AllFlagsAndMore; 160return m_flags == ReflectionPermission.AllFlagsAndMore; 181ReflectionPermission operand = (ReflectionPermission)other; 205ReflectionPermission operand = (ReflectionPermission)target; 235ReflectionPermission operand = (ReflectionPermission)target; 264if ((type & ~ReflectionPermission.AllFlagsAndMore) != 0) 295m_flags = ReflectionPermission.AllFlagsAndMore; 311return ReflectionPermission.GetTokenIndex();
system\security\permissiontoken.cs (1)
96private static volatile ReflectionPermission s_reflectPerm = null;
system\security\securitymanager.cs (4)
577ReflectionPermission reflectionPermission = null; 584reflectionPermissionFlags = ReflectionPermission.AllFlagsAndMore; 593reflectionPermission = grantSet.GetPermission(BuiltInPermissionIndex.ReflectionPermissionIndex) as ReflectionPermission; 614reflectionPermission = deniedSet.GetPermission(BuiltInPermissionIndex.ReflectionPermissionIndex) as ReflectionPermission;
PresentationFramework (3)
src\Framework\MS\Internal\AppModel\Journaling.cs (1)
737ReflectionPermission.RevertAssert();
src\Framework\MS\Internal\AppModel\ReturnEventSaver.cs (1)
164ReflectionPermission.RevertAssert();
src\Shared\MS\Internal\SecurityHelper.cs (1)
318static ReflectionPermission _reflectionPermission = null;
System (5)
misc\SecurityUtils.cs (4)
40private static volatile ReflectionPermission memberAccessPermission = null; 41private static volatile ReflectionPermission restrictedMemberAccessPermission = null; 43private static ReflectionPermission MemberAccessPermission 53private static ReflectionPermission RestrictedMemberAccessPermission {
net\System\Net\HttpWebRequest.cs (1)
5474ReflectionPermission.RevertAssert();
System.Activities (2)
System\Activities\Expressions\OperatorPermissionHelper.cs (1)
42ReflectionPermission reflectionMemberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess);
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
496ReflectionPermission reflectionPerm = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess);
System.Configuration (1)
System\Configuration\TypeUtil.cs (1)
252private static readonly ReflectionPermission s_memberAccessPermission = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess);
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlCachedBuffer.cs (1)
143System.Security.Permissions.ReflectionPermission.RevertAssert();
System.Data.Entity (3)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (3)
64/// <permission cref="System.Security.Permissions.ReflectionPermission"> 445gen.Emit(OpCodes.Callvirt, typeof(ReflectionPermission).GetMethod("Demand")); 568internal static readonly ReflectionPermission MemberAccessReflectionPermission = new ReflectionPermission(ReflectionPermissionFlag.MemberAccess);
System.Data.Linq (4)
parent\parent\misc\SecurityUtils.cs (4)
40private static volatile ReflectionPermission memberAccessPermission = null; 41private static volatile ReflectionPermission restrictedMemberAccessPermission = null; 43private static ReflectionPermission MemberAccessPermission 53private static ReflectionPermission RestrictedMemberAccessPermission {
System.Runtime.Serialization (11)
System\Runtime\Serialization\Globals.cs (2)
1127static ReflectionPermission memberAccessPermission; 1128public static ReflectionPermission MemberAccessPermission
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
129if (memberAccessFlag && securityException.PermissionType.Equals(typeof(ReflectionPermission))) 205if (memberAccessFlag && securityException.PermissionType.Equals(typeof(ReflectionPermission)))
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
99if (memberAccessFlag && securityException.PermissionType.Equals(typeof(ReflectionPermission))) 130if (memberAccessFlag && securityException.PermissionType.Equals(typeof(ReflectionPermission)))
System\Runtime\Serialization\XmlDataContract.cs (1)
349if (memberAccessFlag && securityException.PermissionType.Equals(typeof(ReflectionPermission)))
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
130if (memberAccessFlag && securityException.PermissionType.Equals(typeof(ReflectionPermission))) 216if (memberAccessFlag && securityException.PermissionType.Equals(typeof(ReflectionPermission)))
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (2)
112if (memberAccessFlag && securityException.PermissionType.Equals(typeof(ReflectionPermission))) 142if (memberAccessFlag && securityException.PermissionType.Equals(typeof(ReflectionPermission)))
System.ServiceModel (5)
System\ServiceModel\Description\ServiceDescription.cs (1)
172if (securityException != null && securityException.PermissionType.Equals(typeof(ReflectionPermission)))
System\ServiceModel\Dispatcher\InvokerUtil.cs (4)
90if (requiresMemberAccess && securityException.PermissionType.Equals(typeof(ReflectionPermission))) 129if (requiresMemberAccess && securityException.PermissionType.Equals(typeof(ReflectionPermission))) 174if (requiresMemberAccess && securityException.PermissionType.Equals(typeof(ReflectionPermission))) 221if (requiresMemberAccess && securityException.PermissionType.Equals(typeof(ReflectionPermission)))
System.Web (4)
parent\parent\parent\Misc\SecurityUtils.cs (4)
40private static volatile ReflectionPermission memberAccessPermission = null; 41private static volatile ReflectionPermission restrictedMemberAccessPermission = null; 43private static ReflectionPermission MemberAccessPermission 53private static ReflectionPermission RestrictedMemberAccessPermission {
System.Windows.Forms (4)
misc\SecurityUtils.cs (4)
40private static volatile ReflectionPermission memberAccessPermission = null; 41private static volatile ReflectionPermission restrictedMemberAccessPermission = null; 43private static ReflectionPermission MemberAccessPermission 53private static ReflectionPermission RestrictedMemberAccessPermission {