system\appdomain.cs (47)
742RuntimeAssembly callingAssembly = RuntimeAssembly.GetExecutingAssembly(ref stackMark);
1846return RuntimeAssembly.InternalLoadAssemblyName(assemblyRef, null, null, ref stackMark, true /*thrownOnFileNotFound*/, false, false);
1854return RuntimeAssembly.InternalLoad(assemblyString, null, ref stackMark, false);
1862return RuntimeAssembly.nLoadImage(rawAssembly,
1878return RuntimeAssembly.nLoadImage(rawAssembly,
1905return RuntimeAssembly.nLoadImage(rawAssembly,
1921return RuntimeAssembly.InternalLoadAssemblyName(assemblyRef, assemblySecurity, null, ref stackMark, true /*thrownOnFileNotFound*/, false, false);
1931return RuntimeAssembly.InternalLoad(assemblyString, assemblySecurity, ref stackMark, false);
1964RuntimeAssembly assembly = (RuntimeAssembly)Assembly.LoadFrom(assemblyFile, assemblySecurity);
1976RuntimeAssembly assembly = (RuntimeAssembly)Assembly.LoadFrom(assemblyFile);
2000RuntimeAssembly assembly = (RuntimeAssembly)Assembly.LoadFrom(assemblyFile,
2017RuntimeAssembly assembly = (RuntimeAssembly)Assembly.LoadFrom(assemblyFile,
2055RuntimeAssembly assembly = (RuntimeAssembly)Assembly.Load(assemblyName, assemblySecurity);
2065RuntimeAssembly assembly = (RuntimeAssembly)Assembly.Load(assemblyName);
2085RuntimeAssembly assembly = (RuntimeAssembly)Assembly.Load(assemblyName, assemblySecurity);
2095RuntimeAssembly assembly = (RuntimeAssembly)Assembly.Load(assemblyName);
2269internal static extern void PublishAnonymouslyHostedDynamicMethodsAssembly(RuntimeAssembly assemblyHandle);
2959private extern int _nExecuteAssembly(RuntimeAssembly assembly, String[] args);
2960internal int nExecuteAssembly(RuntimeAssembly assembly, String[] args)
3109private void OnAssemblyLoadEvent(RuntimeAssembly LoadedAssembly)
3120private RuntimeAssembly OnResourceResolveEvent(RuntimeAssembly assembly, String resourceName)
3130RuntimeAssembly ret = GetRuntimeAssembly(asm);
3140private RuntimeAssembly OnTypeResolveEvent(RuntimeAssembly assembly, String typeName)
3150RuntimeAssembly ret = GetRuntimeAssembly(asm);
3160private RuntimeAssembly OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
3173RuntimeAssembly ret = GetRuntimeAssembly(asm);
3183private RuntimeAssembly OnReflectionOnlyAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
3192RuntimeAssembly ret = GetRuntimeAssembly(asm);
3203private RuntimeAssembly[] OnReflectionOnlyNamespaceResolveEvent(RuntimeAssembly assembly, string namespaceName)
3228internal static RuntimeAssembly GetRuntimeAssembly(Assembly asm)
3233RuntimeAssembly rtAssembly = asm as RuntimeAssembly;
4029private bool IsAssemblyOnAptcaVisibleList(RuntimeAssembly assembly)
system\reflection\assembly.cs (101)
93left is RuntimeAssembly || right is RuntimeAssembly)
150return RuntimeAssembly.InternalLoadFrom(
172return RuntimeAssembly.InternalLoadFrom(
195return RuntimeAssembly.InternalLoadFrom(
220return RuntimeAssembly.InternalLoadFrom(
240return RuntimeAssembly.InternalLoadFrom(
264return RuntimeAssembly.InternalLoadFrom(assemblyFile,
284return RuntimeAssembly.InternalLoad(assemblyString, null, ref stackMark, false /*forIntrospection*/);
300RuntimeAssembly assembly;
301AssemblyName assemblyName = RuntimeAssembly.CreateAssemblyName(
311assembly = RuntimeAssembly.InternalLoadAssemblyName(
328return RuntimeAssembly.InternalLoad(assemblyString, null, ref stackMark, true /*forIntrospection*/);
340return RuntimeAssembly.InternalLoad(assemblyString, assemblySecurity, ref stackMark, false /*forIntrospection*/);
364return RuntimeAssembly.InternalLoadAssemblyName(assemblyRef, null, null, ref stackMark, true /*thrownOnFileNotFound*/, false /*forIntrospection*/, false /*suppressSecurityChecks*/);
376return RuntimeAssembly.InternalLoadAssemblyName(assemblyRef, assemblySecurity, null, ref stackMark, true /*thrownOnFileNotFound*/, false /*forIntrospection*/, false /*suppressSecurityChecks*/);
386return RuntimeAssembly.LoadWithPartialNameInternal(partialName, null, ref stackMark);
395return RuntimeAssembly.LoadWithPartialNameInternal(partialName, securityEvidence, ref stackMark);
416return RuntimeAssembly.nLoadImage(
438return RuntimeAssembly.nLoadImage(
468return RuntimeAssembly.nLoadImage(
499return RuntimeAssembly.nLoadImage(rawAssembly,
529return RuntimeAssembly.nLoadImage(rawAssembly,
565return RuntimeAssembly.nLoadImage(
588return RuntimeAssembly.nLoadFile(path, null);
610return RuntimeAssembly.nLoadFile(path, securityEvidence);
646return RuntimeAssembly.GetExecutingAssembly(ref stackMark);
657return RuntimeAssembly.GetExecutingAssembly(ref stackMark);
901RuntimeAssembly rtAssembly = this as RuntimeAssembly;
1165RuntimeAssembly rtAssembly = this as RuntimeAssembly;
1266if (RuntimeAssembly.IsFrameworkAssembly(GetName()))
1347private static extern void GetCodeBase(RuntimeAssembly assembly,
1375internal RuntimeAssembly GetNativeHandle()
1440private extern static void GetFullName(RuntimeAssembly assembly, StringHandleOnStack retString);
1462private static extern void GetEntryPoint(RuntimeAssembly assembly, ObjectHandleOnStack retMethod);
1482private static extern void GetType(RuntimeAssembly assembly,
1504internal extern static void GetForwardedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes);
1510private extern static void GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes);
1560private extern static void GetEvidence(RuntimeAssembly assembly, ObjectHandleOnStack retEvidence);
1566private extern static SecurityRuleSet GetSecurityRuleSet(RuntimeAssembly assembly);
1642return RuntimeAssembly.GetManifestModule(GetNativeHandle());
1688internal static RuntimeAssembly InternalLoadFrom(String assemblyFile,
1717internal static RuntimeAssembly InternalLoad(String assemblyString,
1727internal static RuntimeAssembly InternalLoad(String assemblyString,
1735RuntimeAssembly assembly;
1755out RuntimeAssembly assemblyFromResolveEvent)
1781internal static RuntimeAssembly InternalLoadAssemblyName(
1784RuntimeAssembly reqAssembly,
1797internal static RuntimeAssembly InternalLoadAssemblyName(
1800RuntimeAssembly reqAssembly,
1898return RuntimeAssembly.nIsDesignerBindingContext(this);
1905private extern static bool nIsDesignerBindingContext(RuntimeAssembly assembly);
1911private static extern RuntimeAssembly _nLoad(AssemblyName fileName,
1914RuntimeAssembly locationHint,
1939private static RuntimeAssembly nLoad(AssemblyName fileName,
1942RuntimeAssembly locationHint,
1962private static unsafe RuntimeAssembly LoadWithPartialNameHack(String partialName, bool cropPublicKey)
2002internal static RuntimeAssembly LoadWithPartialNameInternal(String partialName, Evidence securityEvidence, ref StackCrawlMark stackMark)
2009internal static RuntimeAssembly LoadWithPartialNameInternal(AssemblyName an, Evidence securityEvidence, ref StackCrawlMark stackMark)
2024RuntimeAssembly result = null;
2137private static extern bool IsReflectionOnly(RuntimeAssembly assembly);
2210private extern static void LoadModule(RuntimeAssembly assembly,
2241private static extern void GetModule(RuntimeAssembly assembly, String name, ObjectHandleOnStack retModule);
2297private static extern String[] GetManifestResourceNames(RuntimeAssembly assembly);
2314internal static RuntimeAssembly GetExecutingAssembly(ref StackCrawlMark stackMark)
2316RuntimeAssembly retAssembly = null;
2325private static extern AssemblyName[] GetReferencedAssemblies(RuntimeAssembly assembly);
2337private static extern int GetManifestResourceInfo(RuntimeAssembly assembly,
2349RuntimeAssembly retAssembly = null;
2368private static extern void GetLocation(RuntimeAssembly assembly, StringHandleOnStack retString);
2395private extern static void GetImageRuntimeVersion(RuntimeAssembly assembly, StringHandleOnStack retString);
2414private extern static bool IsGlobalAssemblyCache(RuntimeAssembly assembly);
2429private extern static Int64 GetHostContext(RuntimeAssembly assembly);
2502private static extern bool GetIsStrongNameVerified(RuntimeAssembly assembly);
2510private static unsafe extern byte* GetResource(RuntimeAssembly assembly,
2549private static extern void GetVersion(RuntimeAssembly assembly,
2566private static extern void GetLocale(RuntimeAssembly assembly, StringHandleOnStack retString);
2584private static extern bool FCallIsDynamic(RuntimeAssembly assembly);
2614private static extern void GetSimpleName(RuntimeAssembly assembly, StringHandleOnStack retSimpleName);
2628private extern static AssemblyHashAlgorithm GetHashAlgorithm(RuntimeAssembly assembly);
2640private extern static AssemblyNameFlags GetFlags(RuntimeAssembly assembly);
2652private static extern void GetRawBytes(RuntimeAssembly assembly, ObjectHandleOnStack retRawBytes);
2668private static extern void GetPublicKey(RuntimeAssembly assembly, ObjectHandleOnStack retPublicKey);
2682private extern static void GetGrantSet(RuntimeAssembly assembly, ObjectHandleOnStack granted, ObjectHandleOnStack denied);
2715private extern static bool IsAllSecurityCritical(RuntimeAssembly assembly);
2729private extern static bool IsAllSecuritySafeCritical(RuntimeAssembly assembly);
2743private extern static bool IsAllPublicAreaSecuritySafeCritical(RuntimeAssembly assembly);
2757private extern static bool IsAllSecurityTransparent(RuntimeAssembly assembly);
2902internal RuntimeAssembly InternalGetSatelliteAssembly(String name,
2922RuntimeAssembly retAssembly = null;
3053private RuntimeAssembly InternalProbeForSatelliteAssemblyNextToParentAssembly(AssemblyName an,
3063RuntimeAssembly retAssembly = null;
3166static internal extern RuntimeAssembly nLoadFile(String path, Evidence evidence);
3171static internal extern RuntimeAssembly nLoadImage(byte[] rawAssembly,
3194private extern static void GetModules(RuntimeAssembly assembly,
3226internal static extern RuntimeModule GetManifestModule(RuntimeAssembly assembly);
3232internal static extern bool AptcaCheck(RuntimeAssembly targetAssembly, RuntimeAssembly sourceAssembly);
3238internal static extern int GetToken(RuntimeAssembly assembly);
system\reflection\customattribute.cs (17)
173internal static IList<CustomAttributeData> GetCustomAttributesInternal(RuntimeAssembly target)
177IList<CustomAttributeData> cad = GetCustomAttributes((RuntimeModule)target.ManifestModule, RuntimeAssembly.GetToken(target.GetNativeHandle()));
1023RuntimeAssembly assembly);
1047(RuntimeAssembly)customAttributeModule.Assembly);
1135public extern void Push(RuntimeAssembly assembly);
1305internal static bool IsDefined(RuntimeAssembly assembly, RuntimeType caType)
1313return IsCustomAttributeDefined(assembly.ManifestModule as RuntimeModule, RuntimeAssembly.GetToken(assembly.GetNativeHandle()), caType);
1554internal static Object[] GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)
1561int assemblyToken = RuntimeAssembly.GetToken(assembly.GetNativeHandle());
1906RuntimeAssembly attributeAssembly = (RuntimeAssembly)attributeType.Assembly;
1907RuntimeAssembly decoratedModuleAssembly = (RuntimeAssembly)decoratedModule.Assembly;
1910!RuntimeAssembly.AptcaCheck(attributeAssembly, decoratedModuleAssembly))
2383internal static Attribute[] GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType, bool includeSecCa, out int count)
2397GetSecurityAttributes(assembly.ManifestModule.ModuleHandle.GetRuntimeModule(), RuntimeAssembly.GetToken(assembly.GetNativeHandle()), true, out securityAttributes);
2418internal static bool IsDefined(RuntimeAssembly assembly, RuntimeType caType)
system\reflection\emit\assemblybuilder.cs (15)
183private static extern RuntimeModule GetInMemoryAssemblyModule(RuntimeAssembly assembly);
194private static extern RuntimeModule GetOnDiskAssemblyModule(RuntimeAssembly assembly);
272internal RuntimeAssembly GetNativeHandle()
448RuntimeAssembly creator = RuntimeAssembly.GetExecutingAssembly(ref stackMark);
2191static private extern void DefineDynamicModule(RuntimeAssembly containingAssembly,
2202private static Module DefineDynamicModule(RuntimeAssembly containingAssembly,
2231static private extern void PrepareForSavingManifestToDisk(RuntimeAssembly assembly, RuntimeModule assemblyModule); // module to contain assembly information if assembly is embedded
2237static private extern void SaveManifestToDisk(RuntimeAssembly assembly,
2248static private extern int AddFile(RuntimeAssembly assembly, String strFileName);
2254static private extern void SetFileHashValue(RuntimeAssembly assembly,
2262static private extern int AddExportedTypeInMemory(RuntimeAssembly assembly,
2272static private extern int AddExportedTypeOnDisk(RuntimeAssembly assembly,
2283static private extern void AddStandAloneResource(RuntimeAssembly assembly,
2294static private extern void AddDeclarativeSecurity(RuntimeAssembly assembly, SecurityAction action, byte[] blob, int length);
system\security\codeaccesssecurityengine.cs (7)
106private static void ThrowSecurityException(RuntimeAssembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed)
130Contract.Assert((assemblyOrString == null || assemblyOrString is RuntimeAssembly || assemblyOrString is String), "Must pass in an Assembly object or String object here");
132if (assemblyOrString == null || assemblyOrString is RuntimeAssembly)
133ThrowSecurityException((RuntimeAssembly)assemblyOrString, granted, refused, rmh, action, demand, permThatFailed);
148RuntimeAssembly asm,
263RuntimeAssembly asm,
553internal static void CheckAssembly(RuntimeAssembly asm, CodeAccessPermission demand )