101 lines
4.4 KiB
C#
101 lines
4.4 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Reflection
|
|
{
|
|
/// <summary>Represents a named argument of a custom attribute in the reflection-only context.</summary>
|
|
// Token: 0x02000247 RID: 583
|
|
[Token(Token = "0x2000247")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public struct CustomAttributeNamedArgument
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.CustomAttributeNamedArgument" /> class, which represents the specified field or property of the custom attribute, and specifies the value of the field or property.</summary>
|
|
/// <param name="memberInfo">A field or property of the custom attribute. The new <see cref="T:System.Reflection.CustomAttributeNamedArgument" /> object represents this member and its value.</param>
|
|
/// <param name="value">The value of the field or property of the custom attribute.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="memberInfo" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="memberInfo" /> is not a field or property of the custom attribute.</exception>
|
|
// Token: 0x060014FA RID: 5370 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60014FA")]
|
|
[Address(RVA = "0x30B6B80", Offset = "0x30B5B80", VA = "0x1830B6B80")]
|
|
public CustomAttributeNamedArgument(MemberInfo memberInfo, object value)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the attribute member that would be used to set the named argument.</summary>
|
|
/// <returns>The attribute member that would be used to set the named argument.</returns>
|
|
// Token: 0x17000231 RID: 561
|
|
// (get) Token: 0x060014FB RID: 5371 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000231")]
|
|
public MemberInfo MemberInfo
|
|
{
|
|
[Token(Token = "0x60014FB")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Reflection.CustomAttributeTypedArgument" /> structure that can be used to obtain the type and value of the current named argument.</summary>
|
|
/// <returns>A structure that can be used to obtain the type and value of the current named argument.</returns>
|
|
// Token: 0x17000232 RID: 562
|
|
// (get) Token: 0x060014FC RID: 5372 RVA: 0x0000F5E8 File Offset: 0x0000D7E8
|
|
[Token(Token = "0x17000232")]
|
|
public CustomAttributeTypedArgument TypedValue
|
|
{
|
|
[Token(Token = "0x60014FC")]
|
|
[Address(RVA = "0x814AC0", Offset = "0x813AC0", VA = "0x180814AC0")]
|
|
get
|
|
{
|
|
return default(CustomAttributeTypedArgument);
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns a string that consists of the argument name, the equal sign, and a string representation of the argument value.</summary>
|
|
/// <returns>A string that consists of the argument name, the equal sign, and a string representation of the argument value.</returns>
|
|
// Token: 0x060014FD RID: 5373 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60014FD")]
|
|
[Address(RVA = "0x30B6B00", Offset = "0x30B5B00", VA = "0x1830B6B00", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns a value that indicates whether this instance is equal to a specified object.</summary>
|
|
/// <param name="obj">An object to compare with this instance, or <see langword="null" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="obj" /> equals the type and value of this instance; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060014FE RID: 5374 RVA: 0x0000F600 File Offset: 0x0000D800
|
|
[Token(Token = "0x60014FE")]
|
|
[Address(RVA = "0x30B6990", Offset = "0x30B5990", VA = "0x1830B6990", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Returns the hash code for this instance.</summary>
|
|
/// <returns>A 32-bit signed integer hash code.</returns>
|
|
// Token: 0x060014FF RID: 5375 RVA: 0x0000F618 File Offset: 0x0000D818
|
|
[Token(Token = "0x60014FF")]
|
|
[Address(RVA = "0x30B6A70", Offset = "0x30B5A70", VA = "0x1830B6A70", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x04000B2B RID: 2859
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4000B2B")]
|
|
private CustomAttributeTypedArgument typedArgument;
|
|
|
|
// Token: 0x04000B2C RID: 2860
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000B2C")]
|
|
private MemberInfo memberInfo;
|
|
}
|
|
}
|