Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Reflection/FieldInfo.cs
T
2026-04-10 22:50:51 +02:00

374 lines
18 KiB
C#

using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Reflection
{
/// <summary>Discovers the attributes of a field and provides access to field metadata.</summary>
// Token: 0x02000245 RID: 581
[Token(Token = "0x2000245")]
[ComDefaultInterface(typeof(_FieldInfo))]
[ClassInterface(ClassInterfaceType.None)]
[ComVisible(true)]
[Serializable]
public abstract class FieldInfo : MemberInfo, _FieldInfo
{
/// <summary>Gets the attributes associated with this field.</summary>
/// <returns>The <see langword="FieldAttributes" /> for this field.</returns>
// Token: 0x1700022B RID: 555
// (get) Token: 0x060014DA RID: 5338
[Token(Token = "0x1700022B")]
public abstract FieldAttributes Attributes
{
[Token(Token = "0x60014DA")]
[Address(Slot = "18")]
get;
}
/// <summary>Gets a <see langword="RuntimeFieldHandle" />, which is a handle to the internal metadata representation of a field.</summary>
/// <returns>A handle to the internal metadata representation of a field.</returns>
// Token: 0x1700022C RID: 556
// (get) Token: 0x060014DB RID: 5339
[Token(Token = "0x1700022C")]
public abstract RuntimeFieldHandle FieldHandle
{
[Token(Token = "0x60014DB")]
[Address(Slot = "19")]
get;
}
/// <summary>Initializes a new instance of the <see langword="FieldInfo" /> class.</summary>
// Token: 0x060014DC RID: 5340 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60014DC")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
protected FieldInfo()
{
}
/// <summary>Gets the type of this field object.</summary>
/// <returns>The type of this field object.</returns>
// Token: 0x1700022D RID: 557
// (get) Token: 0x060014DD RID: 5341
[Token(Token = "0x1700022D")]
public abstract Type FieldType
{
[Token(Token = "0x60014DD")]
[Address(Slot = "20")]
get;
}
/// <summary>When overridden in a derived class, returns the value of a field supported by a given object.</summary>
/// <param name="obj">The object whose field value will be returned.</param>
/// <returns>An object containing the value of the field reflected by this instance.</returns>
/// <exception cref="T:System.Reflection.TargetException">In the .NET for Windows Store apps or the Portable Class Library, catch <see cref="T:System.Exception" /> instead.
///
///
///
///
/// The field is non-static and <paramref name="obj" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.NotSupportedException">A field is marked literal, but the field does not have one of the accepted literal types.</exception>
/// <exception cref="T:System.FieldAccessException">In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, <see cref="T:System.MemberAccessException" />, instead.
///
///
///
///
/// The caller does not have permission to access this field.</exception>
/// <exception cref="T:System.ArgumentException">The method is neither declared nor inherited by the class of <paramref name="obj" />.</exception>
// Token: 0x060014DE RID: 5342
[Token(Token = "0x60014DE")]
[Address(Slot = "21")]
public abstract object GetValue(object obj);
/// <summary>Gets a <see cref="T:System.Reflection.MemberTypes" /> value indicating that this member is a field.</summary>
/// <returns>A <see cref="T:System.Reflection.MemberTypes" /> value indicating that this member is a field.</returns>
// Token: 0x1700022E RID: 558
// (get) Token: 0x060014DF RID: 5343 RVA: 0x0000F378 File Offset: 0x0000D578
[Token(Token = "0x1700022E")]
public override MemberTypes MemberType
{
[Token(Token = "0x60014DF")]
[Address(RVA = "0x4101C0", Offset = "0x40EFC0", VA = "0x1804101C0", Slot = "7")]
get
{
return (MemberTypes)0;
}
}
/// <summary>Gets a value indicating whether the value is written at compile time and cannot be changed.</summary>
/// <returns>
/// <see langword="true" /> if the field has the <see langword="Literal" /> attribute set; otherwise, <see langword="false" />.</returns>
// Token: 0x1700022F RID: 559
// (get) Token: 0x060014E0 RID: 5344 RVA: 0x0000F390 File Offset: 0x0000D590
[Token(Token = "0x1700022F")]
public bool IsLiteral
{
[Token(Token = "0x60014E0")]
[Address(RVA = "0x2A07650", Offset = "0x2A06450", VA = "0x182A07650", Slot = "22")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the field is static.</summary>
/// <returns>
/// <see langword="true" /> if this field is static; otherwise, <see langword="false" />.</returns>
// Token: 0x17000230 RID: 560
// (get) Token: 0x060014E1 RID: 5345 RVA: 0x0000F3A8 File Offset: 0x0000D5A8
[Token(Token = "0x17000230")]
public bool IsStatic
{
[Token(Token = "0x60014E1")]
[Address(RVA = "0x2A076E0", Offset = "0x2A064E0", VA = "0x182A076E0", Slot = "23")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the field can only be set in the body of the constructor.</summary>
/// <returns>
/// <see langword="true" /> if the field has the <see langword="InitOnly" /> attribute set; otherwise, <see langword="false" />.</returns>
// Token: 0x17000231 RID: 561
// (get) Token: 0x060014E2 RID: 5346 RVA: 0x0000F3C0 File Offset: 0x0000D5C0
[Token(Token = "0x17000231")]
public bool IsInitOnly
{
[Token(Token = "0x60014E2")]
[Address(RVA = "0x2A07630", Offset = "0x2A06430", VA = "0x182A07630", Slot = "24")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the field is public.</summary>
/// <returns>
/// <see langword="true" /> if this field is public; otherwise, <see langword="false" />.</returns>
// Token: 0x17000232 RID: 562
// (get) Token: 0x060014E3 RID: 5347 RVA: 0x0000F3D8 File Offset: 0x0000D5D8
[Token(Token = "0x17000232")]
public bool IsPublic
{
[Token(Token = "0x60014E3")]
[Address(RVA = "0x2A076B0", Offset = "0x2A064B0", VA = "0x182A076B0", Slot = "25")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the field is private.</summary>
/// <returns>
/// <see langword="true" /> if the field is private; otherwise; <see langword="false" />.</returns>
// Token: 0x17000233 RID: 563
// (get) Token: 0x060014E4 RID: 5348 RVA: 0x0000F3F0 File Offset: 0x0000D5F0
[Token(Token = "0x17000233")]
public bool IsPrivate
{
[Token(Token = "0x60014E4")]
[Address(RVA = "0x2A07690", Offset = "0x2A06490", VA = "0x182A07690", Slot = "26")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether this field has the <see langword="NotSerialized" /> attribute.</summary>
/// <returns>
/// <see langword="true" /> if the field has the <see langword="NotSerialized" /> attribute set; otherwise, <see langword="false" />.</returns>
// Token: 0x17000234 RID: 564
// (get) Token: 0x060014E5 RID: 5349 RVA: 0x0000F408 File Offset: 0x0000D608
[Token(Token = "0x17000234")]
public bool IsNotSerialized
{
[Token(Token = "0x60014E5")]
[Address(RVA = "0x2A07670", Offset = "0x2A06470", VA = "0x182A07670", Slot = "27")]
get
{
return default(bool);
}
}
/// <summary>When overridden in a derived class, sets the value of the field supported by the given object.</summary>
/// <param name="obj">The object whose field value will be set.</param>
/// <param name="value">The value to assign to the field.</param>
/// <param name="invokeAttr">A field of <see langword="Binder" /> that specifies the type of binding that is desired (for example, <see langword="Binder.CreateInstance" /> or <see langword="Binder.ExactBinding" />).</param>
/// <param name="binder">A set of properties that enables the binding, coercion of argument types, and invocation of members through reflection. If <paramref name="binder" /> is <see langword="null" />, then <see langword="Binder.DefaultBinding" /> is used.</param>
/// <param name="culture">The software preferences of a particular culture.</param>
/// <exception cref="T:System.FieldAccessException">The caller does not have permission to access this field.</exception>
/// <exception cref="T:System.Reflection.TargetException">The <paramref name="obj" /> parameter is <see langword="null" /> and the field is an instance field.</exception>
/// <exception cref="T:System.ArgumentException">The field does not exist on the object.
/// -or-
/// The <paramref name="value" /> parameter cannot be converted and stored in the field.</exception>
// Token: 0x060014E6 RID: 5350
[Token(Token = "0x60014E6")]
[Address(Slot = "28")]
public abstract void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture);
/// <summary>Sets the value of the field supported by the given object.</summary>
/// <param name="obj">The object whose field value will be set.</param>
/// <param name="value">The value to assign to the field.</param>
/// <exception cref="T:System.FieldAccessException">In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, <see cref="T:System.MemberAccessException" />, instead.
///
///
///
///
/// The caller does not have permission to access this field.</exception>
/// <exception cref="T:System.Reflection.TargetException">In the .NET for Windows Store apps or the Portable Class Library, catch <see cref="T:System.Exception" /> instead.
///
///
///
///
/// The <paramref name="obj" /> parameter is <see langword="null" /> and the field is an instance field.</exception>
/// <exception cref="T:System.ArgumentException">The field does not exist on the object.
/// -or-
/// The <paramref name="value" /> parameter cannot be converted and stored in the field.</exception>
// Token: 0x060014E7 RID: 5351 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60014E7")]
[Address(RVA = "0x2A07600", Offset = "0x2A06400", VA = "0x182A07600", Slot = "29")]
[DebuggerStepThrough]
[DebuggerHidden]
public void SetValue(object obj, object value)
{
}
// Token: 0x060014E8 RID: 5352 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60014E8")]
[Address(RVA = "0x2A07700", Offset = "0x2A06500", VA = "0x182A07700")]
private static FieldInfo internal_from_handle_type(IntPtr field_handle, IntPtr type_handle)
{
return null;
}
/// <summary>Gets a <see cref="T:System.Reflection.FieldInfo" /> for the field represented by the specified handle.</summary>
/// <param name="handle">A <see cref="T:System.RuntimeFieldHandle" /> structure that contains the handle to the internal metadata representation of a field.</param>
/// <returns>A <see cref="T:System.Reflection.FieldInfo" /> object representing the field specified by <paramref name="handle" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="handle" /> is invalid.</exception>
// Token: 0x060014E9 RID: 5353 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60014E9")]
[Address(RVA = "0x2A07100", Offset = "0x2A05F00", VA = "0x182A07100")]
public static FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle)
{
return null;
}
/// <summary>Gets a <see cref="T:System.Reflection.FieldInfo" /> for the field represented by the specified handle, for the specified generic type.</summary>
/// <param name="handle">A <see cref="T:System.RuntimeFieldHandle" /> structure that contains the handle to the internal metadata representation of a field.</param>
/// <param name="declaringType">A <see cref="T:System.RuntimeTypeHandle" /> structure that contains the handle to the generic type that defines the field.</param>
/// <returns>A <see cref="T:System.Reflection.FieldInfo" /> object representing the field specified by <paramref name="handle" />, in the generic type specified by <paramref name="declaringType" />.</returns>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="handle" /> is invalid.
/// -or-
/// <paramref name="declaringType" /> is not compatible with <paramref name="handle" />. For example, <paramref name="declaringType" /> is the runtime type handle of the generic type definition, and <paramref name="handle" /> comes from a constructed type.</exception>
// Token: 0x060014EA RID: 5354 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60014EA")]
[Address(RVA = "0x2A07180", Offset = "0x2A05F80", VA = "0x182A07180")]
[ComVisible(false)]
public static FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle, RuntimeTypeHandle declaringType)
{
return null;
}
// Token: 0x060014EB RID: 5355 RVA: 0x0000F420 File Offset: 0x0000D620
[Token(Token = "0x60014EB")]
[Address(RVA = "0x2A07260", Offset = "0x2A06060", VA = "0x182A07260", Slot = "30")]
internal virtual int GetFieldOffset()
{
return 0;
}
/// <summary>Sets the value of the field supported by the given object.</summary>
/// <param name="obj">A <see cref="T:System.TypedReference" /> structure that encapsulates a managed pointer to a location and a runtime representation of the type that can be stored at that location.</param>
/// <param name="value">The value to assign to the field.</param>
/// <exception cref="T:System.NotSupportedException">The caller requires the Common Language Specification (CLS) alternative, but called this method instead.</exception>
// Token: 0x060014EC RID: 5356 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60014EC")]
[Address(RVA = "0x2A07590", Offset = "0x2A06390", VA = "0x182A07590", Slot = "31")]
[CLSCompliant(false)]
public virtual void SetValueDirect(TypedReference obj, object value)
{
}
// Token: 0x060014ED RID: 5357 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60014ED")]
[Address(RVA = "0x2A01F40", Offset = "0x2A00D40", VA = "0x182A01F40")]
private MarshalAsAttribute get_marshal_info()
{
return null;
}
// Token: 0x060014EE RID: 5358 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60014EE")]
[Address(RVA = "0x2A072C0", Offset = "0x2A060C0", VA = "0x182A072C0")]
internal object[] GetPseudoCustomAttributes()
{
return null;
}
/// <summary>Returns a literal value associated with the field by a compiler.</summary>
/// <returns>An <see cref="T:System.Object" /> that contains the literal value associated with the field. If the literal value is a class type with an element value of zero, the return value is <see langword="null" />.</returns>
/// <exception cref="T:System.InvalidOperationException">The Constant table in unmanaged metadata does not contain a constant value for the current field.</exception>
/// <exception cref="T:System.FormatException">The type of the value is not one of the types permitted by the Common Language Specification (CLS). See the ECMA Partition II specification Metadata Logical Format: Other Structures, Element Types used in Signatures.</exception>
/// <exception cref="T:System.NotSupportedException">The constant value for the field is not set.</exception>
// Token: 0x060014EF RID: 5359 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60014EF")]
[Address(RVA = "0x2A07530", Offset = "0x2A06330", VA = "0x182A07530", Slot = "32")]
public virtual object GetRawConstantValue()
{
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: 0x060014F0 RID: 5360 RVA: 0x0000F438 File Offset: 0x0000D638
[Token(Token = "0x60014F0")]
[Address(RVA = "0x1746070", Offset = "0x1744E70", VA = "0x181746070", 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: 0x060014F1 RID: 5361 RVA: 0x0000F450 File Offset: 0x0000D650
[Token(Token = "0x60014F1")]
[Address(RVA = "0x2A02170", Offset = "0x2A00F70", VA = "0x182A02170", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Indicates whether two <see cref="T:System.Reflection.FieldInfo" /> objects are equal.</summary>
/// <param name="left">The first object to compare.</param>
/// <param name="right">The second object to compare.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="left" /> is equal to <paramref name="right" />; otherwise, <see langword="false" />.</returns>
// Token: 0x060014F2 RID: 5362 RVA: 0x0000F468 File Offset: 0x0000D668
[Token(Token = "0x60014F2")]
[Address(RVA = "0x2954E10", Offset = "0x2953C10", VA = "0x182954E10")]
public static bool operator ==(FieldInfo left, FieldInfo right)
{
return default(bool);
}
/// <summary>Indicates whether two <see cref="T:System.Reflection.FieldInfo" /> objects are not equal.</summary>
/// <param name="left">The first object to compare.</param>
/// <param name="right">The second object to compare.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="left" /> is not equal to <paramref name="right" />; otherwise, <see langword="false" />.</returns>
// Token: 0x060014F3 RID: 5363 RVA: 0x0000F480 File Offset: 0x0000D680
[Token(Token = "0x60014F3")]
[Address(RVA = "0x2954E60", Offset = "0x2953C60", VA = "0x182954E60")]
public static bool operator !=(FieldInfo left, FieldInfo right)
{
return default(bool);
}
}
}