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

Implemented Interfaces

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)
Indicates whether this instance and a specified object are equal.
Returns <see langword="true" /> if <paramref name="obj" /> and this instance are the same type and represent the same value; otherwise, <see langword="false" /> .
obj Another object to compare to.
public bool
Equals​(CustomAttributeTypedArgument other)
Indicates whether the current instance is equal to another instance of the same type.
Returns <see langword="true" /> if the current instance is equal to the other instance; otherwise, <see langword="false" /> .
other An instance to compare with this instance.
public int
GetHashCode​()
Returns the hash code for this instance.
Returns A 32-bit signed integer that is 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
Gets the <see cref="T:System.Type" /> of the current instance.
Returns The exact runtime type of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Creates a shallow copy of the current <see cref="T:System.Object" /> .
Returns A shallow copy of the current <see cref="T:System.Object" /> .