Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Reflection.​CustomAttributeTypedArgument

Assembly: System.Runtime

Represents an argument of a custom attribute in the reflection-only context, or an element of an array argument.

Properties

public Type
ArgumentType
Gets the type of the argument or of the array argument element.
public object
Value
Gets the value of the argument for a simple argument or for an element of an array argument; gets a collection of values for an array argument.

Methods

public bool
Equals​(object obj)
obj Another object to compare to.
Returns <see langword="true" /> if <paramref name="obj" /> and this instance are the same type and represent the same value; otherwise, <see langword="false" /> .
Indicates whether this instance and a specified object are equal.
public bool
Equals​(CustomAttributeTypedArgument other)
other An instance to compare with this instance.
Returns <see langword="true" /> if the current instance is equal to the other instance; otherwise, <see langword="false" /> .
Indicates whether the current instance is equal to another instance of the same type.
public int
GetHashCode​()
Returns A 32-bit signed integer that is the hash code for this instance.
Returns the hash code for this instance.
public string
ToString​()
Returns A string consisting of the argument name, the equal sign, and a string representation of the argument value.
Returns a string consisting of the argument name, the equal sign, and a string representation of the argument value.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .