13 references to CheckTypeAccess
Microsoft.CSharp (13)
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
195
&& CSemanticChecker.
CheckTypeAccess
(_typeDest, _binder.Context.ContextForMemberLookup))
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (1)
107
bool fInaccess = !CSemanticChecker.
CheckTypeAccess
(typeCur, _symWhere);
Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (3)
79
return
CheckTypeAccess
(type, symWhere) ? ACCESSERROR.ACCESSERROR_NOERROR : ACCESSERROR.ACCESSERROR_NOACCESS;
109
if (!
CheckTypeAccess
(typeArgs[i], symWhere))
257
!
CheckTypeAccess
(swtBad.GetType(), symWhere));
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (8)
599
if (CSemanticChecker.
CheckTypeAccess
(typeSrc, context))
617
Debug.Assert(CSemanticChecker.
CheckTypeAccess
(typeDst, context));
631
if (CSemanticChecker.
CheckTypeAccess
(baseType, context))
648
Debug.Assert(CSemanticChecker.
CheckTypeAccess
(typeDst, context));
674
if (!CSemanticChecker.
CheckTypeAccess
(aggOpenType, context))
688
if (CSemanticChecker.
CheckTypeAccess
(typeArg, context))
720
Debug.Assert(CSemanticChecker.
CheckTypeAccess
(typeDst, context));
740
Debug.Assert(CSemanticChecker.
CheckTypeAccess
(typeDst, context));