99 references to ReflectionPermissionFlag
mscorlib (57)
system\appdomain.cs (1)
188
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Assert();
system\delegateserializationholder.cs (2)
32
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Demand();
248
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Demand();
system\diagnostics\eventing\eventsource.cs (1)
3804
(new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess)).Assert();
system\diagnostics\stacktrace.cs (1)
134
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Assert();
system\reflection\ConstructorInfo.cs (1)
665
[ReflectionPermissionAttribute(SecurityAction.Demand, Flags =
ReflectionPermissionFlag
.MemberAccess)]
system\reflection\emit\dynamicmethod.cs (3)
465
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Demand();
502
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Demand();
507
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Demand();
system\reflection\methodbase.cs (1)
252
[ReflectionPermissionAttribute(SecurityAction.Demand, Flags=
ReflectionPermissionFlag
.MemberAccess)]
system\reflection\methodinfo.cs (1)
640
[ReflectionPermissionAttribute(SecurityAction.Demand, Flags =
ReflectionPermissionFlag
.MemberAccess)]
system\rttype.cs (1)
5390
ps.AddPermission(new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess));
system\security\codeaccesssecurityengine.cs (1)
511
demandSet.AddPermission(new ReflectionPermission(
ReflectionPermissionFlag
.RestrictedMemberAccess));
system\security\permissions\permissionattributes.cs (15)
461
private
ReflectionPermissionFlag
m_flag =
ReflectionPermissionFlag
.NoFlags;
470
public
ReflectionPermissionFlag
Flags {
478
get { return (m_flag &
ReflectionPermissionFlag
.TypeInformation) != 0; }
479
set { m_flag = value ? m_flag |
ReflectionPermissionFlag
.TypeInformation : m_flag & ~
ReflectionPermissionFlag
.TypeInformation; }
484
get { return (m_flag &
ReflectionPermissionFlag
.MemberAccess) != 0; }
485
set { m_flag = value ? m_flag |
ReflectionPermissionFlag
.MemberAccess : m_flag & ~
ReflectionPermissionFlag
.MemberAccess; }
491
get { return (m_flag &
ReflectionPermissionFlag
.ReflectionEmit) != 0; }
492
set { m_flag = value ? m_flag |
ReflectionPermissionFlag
.ReflectionEmit : m_flag & ~
ReflectionPermissionFlag
.ReflectionEmit; }
498
get { return (m_flag &
ReflectionPermissionFlag
.RestrictedMemberAccess) != 0; }
499
set { m_flag = value ? m_flag |
ReflectionPermissionFlag
.RestrictedMemberAccess : m_flag & ~
ReflectionPermissionFlag
.RestrictedMemberAccess; }
system\security\permissions\reflectionpermission.cs (17)
50
internal const
ReflectionPermissionFlag
AllFlagsAndMore =
ReflectionPermissionFlag
.AllFlags |
ReflectionPermissionFlag
.RestrictedMemberAccess;
53
private
ReflectionPermissionFlag
m_flags;
77
public ReflectionPermission(
ReflectionPermissionFlag
flag)
107
m_flags =
ReflectionPermissionFlag
.NoFlags;
111
public
ReflectionPermissionFlag
Flags
189
ReflectionPermissionFlag
flag_union = (
ReflectionPermissionFlag
)(m_flags | operand.m_flags);
200
return m_flags ==
ReflectionPermissionFlag
.NoFlags;
237
ReflectionPermissionFlag
newFlags = operand.m_flags & this.m_flags;
239
if (newFlags ==
ReflectionPermissionFlag
.NoFlags)
253
return new ReflectionPermission((
ReflectionPermissionFlag
)m_flags);
262
void VerifyAccess(
ReflectionPermissionFlag
type)
281
esd.AddAttribute( "Flags", XMLUtil.BitFieldEnumToString( typeof(
ReflectionPermissionFlag
), m_flags ) );
304
m_flags = (
ReflectionPermissionFlag
)Enum.Parse( typeof(
ReflectionPermissionFlag
), flags );
system\security\policy\applicationsecuritymanager.cs (1)
170
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Assert();
system\security\securitymanager.cs (8)
578
ReflectionPermissionFlag
reflectionPermissionFlags =
ReflectionPermissionFlag
.NoFlags;
605
reflectionPermissionFlags =
ReflectionPermissionFlag
.NoFlags;
636
private static int MapToSpecialFlags (SecurityPermissionFlag securityPermissionFlags,
ReflectionPermissionFlag
reflectionPermissionFlags) {
656
if ((reflectionPermissionFlags &
ReflectionPermissionFlag
.RestrictedMemberAccess) ==
ReflectionPermissionFlag
.RestrictedMemberAccess)
658
if ((reflectionPermissionFlags &
ReflectionPermissionFlag
.MemberAccess) ==
ReflectionPermissionFlag
.MemberAccess)
system\security\util\xmlutil.cs (3)
415
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Assert();
487
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Assert();
621
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Assert();
PresentationFramework (3)
src\Framework\MS\Internal\AppModel\Journaling.cs (1)
726
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Assert();
src\Framework\MS\Internal\AppModel\ReturnEventSaver.cs (1)
151
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Assert(); // BlessedAssert
src\Shared\MS\Internal\SecurityHelper.cs (1)
307
_reflectionPermission = new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess);
System (9)
compmod\system\componentmodel\TypeDescriptor.cs (4)
630
[ReflectionPermission(SecurityAction.LinkDemand, Flags=
ReflectionPermissionFlag
.MemberAccess)]
640
[ReflectionPermission(SecurityAction.LinkDemand, Flags=
ReflectionPermissionFlag
.MemberAccess)]
692
[ReflectionPermission(SecurityAction.LinkDemand, Flags=
ReflectionPermissionFlag
.MemberAccess)]
702
[ReflectionPermission(SecurityAction.LinkDemand, Flags=
ReflectionPermissionFlag
.MemberAccess)]
misc\SecurityUtils.cs (2)
47
memberAccessPermission = new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess);
56
restrictedMemberAccessPermission = new ReflectionPermission(
ReflectionPermissionFlag
.RestrictedMemberAccess);
net\System\Net\_AutoWebProxyScriptWrapper.cs (2)
507
[ReflectionPermission(SecurityAction.Assert, Flags =
ReflectionPermissionFlag
.MemberAccess)]
508
[ReflectionPermission(SecurityAction.Assert, Flags =
ReflectionPermissionFlag
.TypeInformation)]
sys\system\configuration\TypeUtil.cs (1)
15
[ReflectionPermission(SecurityAction.Assert, Flags=
ReflectionPermissionFlag
.MemberAccess)]
System.Activities (3)
System\Activities\Expressions\OperatorPermissionHelper.cs (1)
42
ReflectionPermission reflectionMemberAccessPermission = new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess);
System\Activities\Runtime\CallbackWrapper.cs (1)
287
myPermissionSet.AddPermission(new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess));
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
496
ReflectionPermission reflectionPerm = new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess);
System.Configuration (4)
System\Configuration\ConfigurationManagerHelperFactory.cs (1)
31
[ReflectionPermission(SecurityAction.Assert, Flags =
ReflectionPermissionFlag
.MemberAccess)]
System\Configuration\TypeUtil.cs (3)
111
[ReflectionPermission(SecurityAction.Assert, Flags =
ReflectionPermissionFlag
.MemberAccess)]
220
[ReflectionPermission(SecurityAction.Assert, Flags =
ReflectionPermissionFlag
.MemberAccess)]
252
private static readonly ReflectionPermission s_memberAccessPermission = new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess);
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlCachedBuffer.cs (1)
138
new System.Security.Permissions.ReflectionPermission(System.Security.Permissions.
ReflectionPermissionFlag
.MemberAccess).Assert();
System.Data.Entity (1)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (1)
568
internal static readonly ReflectionPermission MemberAccessReflectionPermission = new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess);
System.Data.Linq (2)
parent\parent\misc\SecurityUtils.cs (2)
47
memberAccessPermission = new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess);
56
restrictedMemberAccessPermission = new ReflectionPermission(
ReflectionPermissionFlag
.RestrictedMemberAccess);
System.Data.SqlXml (1)
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
48
CreateModulePermissionSet.AddPermission(new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess));
System.Runtime.Serialization (1)
System\Runtime\Serialization\Globals.cs (1)
1135
memberAccessPermission = new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess);
System.Web (11)
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
195
[ReflectionPermission(SecurityAction.Assert, Flags =
ReflectionPermissionFlag
.MemberAccess)]
Configuration\WebConfigurationHost.cs (1)
830
[ReflectionPermission(SecurityAction.Assert, Flags=
ReflectionPermissionFlag
.MemberAccess)]
HttpApplication.cs (1)
1521
[ReflectionPermission(SecurityAction.Assert, Flags=
ReflectionPermissionFlag
.RestrictedMemberAccess)]
IntSecurity.cs (1)
56
_reflection = new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess);
parent\parent\parent\Misc\SecurityUtils.cs (2)
47
memberAccessPermission = new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess);
56
restrictedMemberAccessPermission = new ReflectionPermission(
ReflectionPermissionFlag
.RestrictedMemberAccess);
UI\TemplateControl.cs (2)
496
[ReflectionPermission(SecurityAction.Assert, Flags =
ReflectionPermissionFlag
.MemberAccess)]
611
[ReflectionPermission(SecurityAction.Assert, Flags=
ReflectionPermissionFlag
.MemberAccess)]
UI\Util.cs (1)
1371
[ReflectionPermission(SecurityAction.Assert, Flags=
ReflectionPermissionFlag
.MemberAccess)]
UI\WebControls\Substitution.cs (1)
74
[ReflectionPermission(SecurityAction.Assert, Flags=
ReflectionPermissionFlag
.MemberAccess)]
Util\ArglessEventHandlerProxy.cs (1)
28
[ReflectionPermission(SecurityAction.Assert, Flags=
ReflectionPermissionFlag
.RestrictedMemberAccess)]
System.Web.ApplicationServices (1)
Util\SystemWebProxy.cs (1)
46
[ReflectionPermission(SecurityAction.Assert, Flags=
ReflectionPermissionFlag
.MemberAccess)]
System.Windows.Forms (2)
misc\SecurityUtils.cs (2)
47
memberAccessPermission = new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess);
56
restrictedMemberAccessPermission = new ReflectionPermission(
ReflectionPermissionFlag
.RestrictedMemberAccess);
System.Xml (3)
System\Xml\Xslt\XslCompiledTransform.cs (3)
58
MemberAccessPermissionSet.AddPermission(new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess));
279
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Assert();
319
new ReflectionPermission(
ReflectionPermissionFlag
.MemberAccess).Demand();