387 lines
14 KiB
C#
387 lines
14 KiB
C#
using System;
|
|
using System.Configuration.Assemblies;
|
|
using System.Globalization;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
using Mono;
|
|
|
|
namespace System.Reflection
|
|
{
|
|
/// <summary>Describes an assembly's unique identity in full.</summary>
|
|
// Token: 0x02000242 RID: 578
|
|
[Token(Token = "0x2000242")]
|
|
[ClassInterface(ClassInterfaceType.None)]
|
|
[ComVisible(true)]
|
|
[ComDefaultInterface(typeof(_AssemblyName))]
|
|
[Serializable]
|
|
[StructLayout(0)]
|
|
public sealed class AssemblyName : ICloneable, ISerializable, IDeserializationCallback, _AssemblyName
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.AssemblyName" /> class.</summary>
|
|
// Token: 0x060014C0 RID: 5312 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60014C0")]
|
|
[Address(RVA = "0x2D65010", Offset = "0x2D64010", VA = "0x182D65010")]
|
|
public AssemblyName()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060014C1 RID: 5313 RVA: 0x0000F4F8 File Offset: 0x0000D6F8
|
|
[Token(Token = "0x60014C1")]
|
|
[Address(RVA = "0x2D64A00", Offset = "0x2D63A00", VA = "0x182D64A00")]
|
|
private static bool ParseAssemblyName(IntPtr name, out MonoAssemblyName aname, out bool is_version_definited, out bool is_token_defined)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.AssemblyName" /> class with the specified display name.</summary>
|
|
/// <param name="assemblyName">The display name of the assembly, as returned by the <see cref="P:System.Reflection.AssemblyName.FullName" /> property.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="assemblyName" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="assemblyName" /> is a zero length string.</exception>
|
|
/// <exception cref="T:System.IO.FileLoadException">In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, <see cref="T:System.IO.IOException" />, instead.
|
|
///
|
|
///
|
|
///
|
|
///
|
|
/// The referenced assembly could not be found, or could not be loaded.</exception>
|
|
// Token: 0x060014C2 RID: 5314 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60014C2")]
|
|
[Address(RVA = "0x2D64A80", Offset = "0x2D63A80", VA = "0x182D64A80")]
|
|
public AssemblyName(string assemblyName)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060014C3 RID: 5315 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60014C3")]
|
|
[Address(RVA = "0x2D64CA0", Offset = "0x2D63CA0", VA = "0x182D64CA0")]
|
|
internal AssemblyName(SerializationInfo si, StreamingContext sc)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the simple name of the assembly. This is usually, but not necessarily, the file name of the manifest file of the assembly, minus its extension.</summary>
|
|
/// <returns>The simple name of the assembly.</returns>
|
|
// Token: 0x17000225 RID: 549
|
|
// (get) Token: 0x060014C4 RID: 5316 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x060014C5 RID: 5317 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000225")]
|
|
public string Name
|
|
{
|
|
[Token(Token = "0x60014C4")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60014C5")]
|
|
[Address(RVA = "0x415800", Offset = "0x414800", VA = "0x180415800")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the culture supported by the assembly.</summary>
|
|
/// <returns>An object that represents the culture supported by the assembly.</returns>
|
|
// Token: 0x17000226 RID: 550
|
|
// (get) Token: 0x060014C6 RID: 5318 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x060014C7 RID: 5319 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000226")]
|
|
public CultureInfo CultureInfo
|
|
{
|
|
[Token(Token = "0x60014C6")]
|
|
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60014C7")]
|
|
[Address(RVA = "0x415830", Offset = "0x414830", VA = "0x180415830")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the attributes of the assembly.</summary>
|
|
/// <returns>A value that represents the attributes of the assembly.</returns>
|
|
// Token: 0x17000227 RID: 551
|
|
// (get) Token: 0x060014C8 RID: 5320 RVA: 0x0000F510 File Offset: 0x0000D710
|
|
// (set) Token: 0x060014C9 RID: 5321 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000227")]
|
|
public AssemblyNameFlags Flags
|
|
{
|
|
[Token(Token = "0x60014C8")]
|
|
[Address(RVA = "0x42B830", Offset = "0x42A830", VA = "0x18042B830")]
|
|
get
|
|
{
|
|
return AssemblyNameFlags.None;
|
|
}
|
|
[Token(Token = "0x60014C9")]
|
|
[Address(RVA = "0x5C17C0", Offset = "0x5C07C0", VA = "0x1805C17C0")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the full name of the assembly, also known as the display name.</summary>
|
|
/// <returns>A string that is the full name of the assembly, also known as the display name.</returns>
|
|
// Token: 0x17000228 RID: 552
|
|
// (get) Token: 0x060014CA RID: 5322 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000228")]
|
|
public string FullName
|
|
{
|
|
[Token(Token = "0x60014CA")]
|
|
[Address(RVA = "0x2D65020", Offset = "0x2D64020", VA = "0x182D65020")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the public and private cryptographic key pair that is used to create a strong name signature for the assembly.</summary>
|
|
/// <returns>The public and private cryptographic key pair to be used to create a strong name for the assembly.</returns>
|
|
// Token: 0x17000229 RID: 553
|
|
// (set) Token: 0x060014CB RID: 5323 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000229")]
|
|
public StrongNameKeyPair KeyPair
|
|
{
|
|
[Token(Token = "0x60014CB")]
|
|
[Address(RVA = "0x417960", Offset = "0x416960", VA = "0x180417960")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the major, minor, build, and revision numbers of the assembly.</summary>
|
|
/// <returns>An object that represents the major, minor, build, and revision numbers of the assembly.</returns>
|
|
// Token: 0x1700022A RID: 554
|
|
// (get) Token: 0x060014CC RID: 5324 RVA: 0x00002082 File Offset: 0x00000282
|
|
// (set) Token: 0x060014CD RID: 5325 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x1700022A")]
|
|
public Version Version
|
|
{
|
|
[Token(Token = "0x60014CC")]
|
|
[Address(RVA = "0x417720", Offset = "0x416720", VA = "0x180417720")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x60014CD")]
|
|
[Address(RVA = "0x2D65490", Offset = "0x2D64490", VA = "0x182D65490")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns the full name of the assembly, also known as the display name.</summary>
|
|
/// <returns>The full name of the assembly, or the class name if the full name cannot be determined.</returns>
|
|
// Token: 0x060014CE RID: 5326 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014CE")]
|
|
[Address(RVA = "0x2D64A30", Offset = "0x2D63A30", VA = "0x182D64A30", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the public key of the assembly.</summary>
|
|
/// <returns>A byte array that contains the public key of the assembly.</returns>
|
|
/// <exception cref="T:System.Security.SecurityException">A public key was provided (for example, by using the <see cref="M:System.Reflection.AssemblyName.SetPublicKey(System.Byte[])" /> method), but no public key token was provided.</exception>
|
|
// Token: 0x060014CF RID: 5327 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014CF")]
|
|
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0")]
|
|
public byte[] GetPublicKey()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the public key token, which is the last 8 bytes of the SHA-1 hash of the public key under which the application or assembly is signed.</summary>
|
|
/// <returns>A byte array that contains the public key token.</returns>
|
|
// Token: 0x060014D0 RID: 5328 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014D0")]
|
|
[Address(RVA = "0x2D64850", Offset = "0x2D63850", VA = "0x182D64850")]
|
|
public byte[] GetPublicKeyToken()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x1700022B RID: 555
|
|
// (get) Token: 0x060014D1 RID: 5329 RVA: 0x0000F528 File Offset: 0x0000D728
|
|
[Token(Token = "0x1700022B")]
|
|
private bool IsPublicKeyValid
|
|
{
|
|
[Token(Token = "0x60014D1")]
|
|
[Address(RVA = "0x2D653C0", Offset = "0x2D643C0", VA = "0x182D653C0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060014D2 RID: 5330 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014D2")]
|
|
[Address(RVA = "0x2D64920", Offset = "0x2D63920", VA = "0x182D64920")]
|
|
private byte[] InternalGetPublicKeyToken()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060014D3 RID: 5331 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60014D3")]
|
|
[Address(RVA = "0x2D65480", Offset = "0x2D64480", VA = "0x182D65480")]
|
|
private unsafe static void get_public_token(byte* token, byte* pubkey, int len)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060014D4 RID: 5332 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014D4")]
|
|
[Address(RVA = "0x2D64270", Offset = "0x2D63270", VA = "0x182D64270")]
|
|
private byte[] ComputePublicKeyToken()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Sets the public key identifying the assembly.</summary>
|
|
/// <param name="publicKey">A byte array containing the public key of the assembly.</param>
|
|
// Token: 0x060014D5 RID: 5333 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60014D5")]
|
|
[Address(RVA = "0x2D64A10", Offset = "0x2D63A10", VA = "0x182D64A10")]
|
|
public void SetPublicKey(byte[] publicKey)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets serialization information with all the data needed to recreate an instance of this <see langword="AssemblyName" />.</summary>
|
|
/// <param name="info">The object to be populated with serialization information.</param>
|
|
/// <param name="context">The destination context of the serialization.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="info" /> is <see langword="null" />.</exception>
|
|
// Token: 0x060014D6 RID: 5334 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60014D6")]
|
|
[Address(RVA = "0x2D64650", Offset = "0x2D63650", VA = "0x182D64650", Slot = "5")]
|
|
public void GetObjectData(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Makes a copy of this <see cref="T:System.Reflection.AssemblyName" /> object.</summary>
|
|
/// <returns>An object that is a copy of this <see cref="T:System.Reflection.AssemblyName" /> object.</returns>
|
|
// Token: 0x060014D7 RID: 5335 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014D7")]
|
|
[Address(RVA = "0x2D641C0", Offset = "0x2D631C0", VA = "0x182D641C0", Slot = "4")]
|
|
public object Clone()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Implements the <see cref="T:System.Runtime.Serialization.ISerializable" /> interface and is called back by the deserialization event when deserialization is complete.</summary>
|
|
/// <param name="sender">The source of the deserialization event.</param>
|
|
// Token: 0x060014D8 RID: 5336 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60014D8")]
|
|
[Address(RVA = "0x2D649F0", Offset = "0x2D639F0", VA = "0x182D649F0", Slot = "6")]
|
|
public void OnDeserialization(object sender)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060014D9 RID: 5337 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014D9")]
|
|
[Address(RVA = "0x2D64640", Offset = "0x2D63640", VA = "0x182D64640")]
|
|
private unsafe static MonoAssemblyName* GetNativeName(IntPtr assembly_ptr)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060014DA RID: 5338 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60014DA")]
|
|
[Address(RVA = "0x2D643C0", Offset = "0x2D633C0", VA = "0x182D643C0")]
|
|
internal unsafe void FillName(MonoAssemblyName* native, string codeBase, bool addVersion, bool addPublickey, bool defaultToken, bool assemblyRef)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060014DB RID: 5339 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014DB")]
|
|
[Address(RVA = "0x2D64300", Offset = "0x2D63300", VA = "0x182D64300")]
|
|
internal static AssemblyName Create(Assembly assembly, bool fillCodebase)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000B12 RID: 2834
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000B12")]
|
|
private string name;
|
|
|
|
// Token: 0x04000B13 RID: 2835
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000B13")]
|
|
private string codebase;
|
|
|
|
// Token: 0x04000B14 RID: 2836
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000B14")]
|
|
private int major;
|
|
|
|
// Token: 0x04000B15 RID: 2837
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x4000B15")]
|
|
private int minor;
|
|
|
|
// Token: 0x04000B16 RID: 2838
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000B16")]
|
|
private int build;
|
|
|
|
// Token: 0x04000B17 RID: 2839
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x4000B17")]
|
|
private int revision;
|
|
|
|
// Token: 0x04000B18 RID: 2840
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000B18")]
|
|
private CultureInfo cultureinfo;
|
|
|
|
// Token: 0x04000B19 RID: 2841
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000B19")]
|
|
private AssemblyNameFlags flags;
|
|
|
|
// Token: 0x04000B1A RID: 2842
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
|
|
[Token(Token = "0x4000B1A")]
|
|
private AssemblyHashAlgorithm hashalg;
|
|
|
|
// Token: 0x04000B1B RID: 2843
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000B1B")]
|
|
private StrongNameKeyPair keypair;
|
|
|
|
// Token: 0x04000B1C RID: 2844
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000B1C")]
|
|
private byte[] publicKey;
|
|
|
|
// Token: 0x04000B1D RID: 2845
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4000B1D")]
|
|
private byte[] keyToken;
|
|
|
|
// Token: 0x04000B1E RID: 2846
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4000B1E")]
|
|
private AssemblyVersionCompatibility versioncompat;
|
|
|
|
// Token: 0x04000B1F RID: 2847
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4000B1F")]
|
|
private Version version;
|
|
|
|
// Token: 0x04000B20 RID: 2848
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4000B20")]
|
|
private ProcessorArchitecture processor_architecture;
|
|
|
|
// Token: 0x04000B21 RID: 2849
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x6C")]
|
|
[Token(Token = "0x4000B21")]
|
|
private AssemblyContentType contentType;
|
|
}
|
|
}
|