34 for (
int i = 0; i <
types.Length; i++)
56 [
RequiresAssemblyFiles(
"This member throws an exception for assemblies embedded in a single-file app")]
113 [
RequiresAssemblyFiles(
"This member throws an exception for assemblies embedded in a single-file app")]
126 [
Obsolete(
"The Global Assembly Cache is not supported.", DiagnosticId =
"SYSLIB0005", UrlFormat =
"https://aka.ms/dotnet-warnings/{0}")]
163 [
Obsolete(
"Assembly.LoadWithPartialName has been deprecated. Use Assembly.Load() instead.")]
246 for (
int i = 0; i <
array.Length; i++)
249 num +=
array[i].Length;
253 for (
int j = 0;
j <
array.Length;
j++)
406 [
RequiresAssemblyFiles(
"This member throws an exception for assemblies embedded in a single-file app")]
412 [
RequiresAssemblyFiles(
"This member throws an exception for assemblies embedded in a single-file app")]
418 [
RequiresAssemblyFiles(
"This member throws an exception for assemblies embedded in a single-file app")]
436 return base.Equals(
o);
441 return base.GetHashCode();
447 if ((
object)right ==
null)
449 if ((
object)left !=
null)
455 if ((
object)left == right)
459 return left?.
Equals(right) ??
false;
464 return !(left == right);
543 [
UnconditionalSuppressMessage(
"SingleFile",
"IL3000:Avoid accessing Assembly file path when publishing as a single file", Justification =
"The assembly is loaded by specifying a path outside of the single-file bundle, the location of the path will not be empty if the path exist, otherwise it will be handled as null")]
640 [
Obsolete(
"ReflectionOnly loading is not supported and throws PlatformNotSupportedException.", DiagnosticId =
"SYSLIB0018", UrlFormat =
"https://aka.ms/dotnet-warnings/{0}")]
647 [
Obsolete(
"ReflectionOnly loading is not supported and throws PlatformNotSupportedException.", DiagnosticId =
"SYSLIB0018", UrlFormat =
"https://aka.ms/dotnet-warnings/{0}")]
654 [
Obsolete(
"ReflectionOnly loading is not supported and throws PlatformNotSupportedException.", DiagnosticId =
"SYSLIB0018", UrlFormat =
"https://aka.ms/dotnet-warnings/{0}")]
static ? object CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
static bool IsPartiallyQualified(ReadOnlySpan< char > path)
static string Combine(string path1, string path2)
static string GetFullPath(string path)
static ? string GetDirectoryName(string? path)
static Exception ByDesign
static string EscapeCodeBase(string codebase)
static bool operator!=(Assembly? left, Assembly? right)
virtual AssemblyName GetName(bool copiedName)
virtual AssemblyName GetName()
object? CreateInstance(string typeName)
static string CreateQualifiedName(string? assemblyName, string? typeName)
static uint GetAssemblyCount()
virtual Assembly GetSatelliteAssembly(CultureInfo culture, Version? version)
virtual Assembly GetSatelliteAssembly(CultureInfo culture)
object? CreateInstance(string typeName, bool ignoreCase)
static Assembly Load(byte[] rawAssembly)
virtual bool GlobalAssemblyCache
static Assembly ReflectionOnlyLoad(byte[] rawAssembly)
virtual ? Type GetType(string name, bool throwOnError)
virtual FileStream[] GetFiles()
virtual IList< CustomAttributeData > GetCustomAttributesData()
static Assembly ReflectionOnlyLoad(string assemblyString)
static Assembly GetCallingAssembly()
static void GetEntryAssemblyNative(ObjectHandleOnStack retAssembly)
static readonly List< string > s_loadFromAssemblyList
virtual string EscapedCodeBase
virtual string ImageRuntimeVersion
virtual ? Stream GetManifestResourceStream(string name)
static Assembly Load(AssemblyName assemblyRef)
static int s_cachedSerializationSwitch
virtual ? string FullName
virtual ? MethodInfo EntryPoint
static bool s_loadFromHandlerSet
virtual Module LoadModule(string moduleName, byte[]? rawModule, byte[]? rawSymbolStore)
static ? Assembly GetAssembly(Type type)
Module[] GetLoadedModules()
static Assembly Load(string assemblyString)
static Assembly GetExecutingAssembly()
override int GetHashCode()
virtual FileStream[] GetFiles(bool getResourceModules)
Module LoadModule(string moduleName, byte[]? rawModule)
virtual bool IsDefined(Type attributeType, bool inherit)
static ? Assembly GetEntryAssembly()
static Assembly LoadFile(string path)
override bool Equals(object? o)
virtual ? ManifestResourceInfo GetManifestResourceInfo(string resourceName)
bool IsRuntimeImplemented()
virtual ? Type GetType(string name)
virtual ? FileStream GetFile(string name)
virtual bool ReflectionOnly
virtual Module[] GetModules(bool getResourceModules)
static Assembly Load(byte[] rawAssembly, byte[]? rawSymbolStore)
virtual string[] GetManifestResourceNames()
virtual Module ManifestModule
override string ToString()
virtual IEnumerable< CustomAttributeData > CustomAttributes
static Assembly GetEntryAssemblyInternal()
virtual Type[] GetForwardedTypes()
static ? Assembly LoadWithPartialName(string partialName)
virtual Module[] GetLoadedModules(bool getResourceModules)
static Assembly ReflectionOnlyLoadFrom(string assemblyFile)
virtual IEnumerable< TypeInfo > DefinedTypes
virtual ? Type GetType(string name, bool throwOnError, bool ignoreCase)
virtual void GetObjectData(SerializationInfo info, StreamingContext context)
virtual ? Module GetModule(string name)
static void GetExecutingAssemblyNative(StackCrawlMarkHandle stackMark, ObjectHandleOnStack retAssembly)
static readonly Dictionary< string, Assembly > s_loadfile
static bool operator==(Assembly? left, Assembly? right)
virtual ? ModuleResolveEventHandler ModuleResolve
virtual object[] GetCustomAttributes(bool inherit)
virtual IEnumerable< Type > ExportedTypes
static Assembly LoadFrom(string assemblyFile)
virtual ? Stream GetManifestResourceStream(Type type, string name)
static Assembly LoadFromResolveHandler(object sender, ResolveEventArgs args)
static RuntimeAssembly GetExecutingAssembly(ref StackCrawlMark stackMark)
static bool s_forceNullEntryPoint
virtual ? object CreateInstance(string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder? binder, object[]? args, CultureInfo? culture, object[]? activationAttributes)
virtual object[] GetCustomAttributes(Type attributeType, bool inherit)
virtual AssemblyName[] GetReferencedAssemblies()
virtual ? string CodeBase
static Assembly UnsafeLoadFrom(string assemblyFile)
virtual Type[] GetExportedTypes()
virtual Type[] GetTypes()
static Assembly LoadFrom(string assemblyFile, byte[]? hashValue, AssemblyHashAlgorithm hashAlgorithm)
virtual bool IsCollectible
static RuntimeAssembly InternalLoad(string assemblyName, ref StackCrawlMark stackMark, AssemblyLoadContext assemblyLoadContext=null)
static bool TraceAssemblyLoadFromResolveHandlerInvoked(string assemblyName, bool isTrackedAssembly, string requestingAssemblyPath, string requestedAssemblyPath)
static ? AssemblyLoadContext CurrentContextualReflectionContext
static ? AssemblyLoadContext GetLoadContext(Assembly assembly)
static bool IsTracingEnabled()
static AssemblyLoadContext Default
static void ThrowIfDeserializationInProgress()
static string Format_StringZeroLength
static string Format(string resourceFormat, object p1)
static string PlatformNotSupported_ReflectionOnly
static string NotSupported_NoTypeInfo
static string Argument_AbsolutePathRequired
static string BadImageFormat_BadILFormat
static string NotSupported_AssemblyLoadFromHash
delegate Module ModuleResolveEventHandler(object sender, ResolveEventArgs e)