Skip to content

FieldDefInfo

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

Information about a field defined in the assembly’s FieldDef metadata table.

public sealed record FieldDefInfo : IEquatable<FieldDefInfo>

ObjectFieldDefInfo

FieldDefInfo(int, string, string, FieldAttributes, string)

Section titled “FieldDefInfo(int, string, string, FieldAttributes, string)”

Information about a field defined in the assembly’s FieldDef metadata table.

Parameters:

  • Token (Int32): The metadata token for this field definition.
  • DeclaringType (String): The fully qualified name of the type that declares this field.
  • Name (String): The name of the field.
  • Attributes (FieldAttributes): The field attribute flags (access, static, literal, etc.).
  • Signature (String): The decoded field type signature string.
public FieldDefInfo(int Token, string DeclaringType, string Name, FieldAttributes Attributes, string Signature)

The field attribute flags (access, static, literal, etc.).

Returns: FieldAttributes

public FieldAttributes Attributes { get; init; }

The fully qualified name of the type that declares this field.

Returns: String

public string DeclaringType { get; init; }

The name of the field.

Returns: String

public string Name { get; init; }

The decoded field type signature string.

Returns: String

public string Signature { get; init; }

The metadata token for this field definition.

Returns: Int32

public int Token { get; init; }

Deconstruct(out int, out string, out string, out FieldAttributes, out string)

Section titled “Deconstruct(out int, out string, out string, out FieldAttributes, out string)”

Parameters:

public void Deconstruct(out int Token, out string DeclaringType, out string Name, out FieldAttributes Attributes, out string Signature)

Parameters:

Returns: Boolean

public bool Equals(FieldDefInfo? other)

Parameters:

Returns: Boolean

public override bool Equals(object? obj)

Returns: Int32

public override int GetHashCode()

Returns: String

public override string ToString()

Parameters:

Returns: Boolean

public static bool operator !=(FieldDefInfo? left, FieldDefInfo? right)

Parameters:

Returns: Boolean

public static bool operator ==(FieldDefInfo? left, FieldDefInfo? right)