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.​CustomAttributeNamedArgument
Assembly: System.Runtime
Represents a named argument of a custom attribute in the reflection-only context.
Properties
public
bool
IsField
Gets a value that indicates whether the named argument is a field.
public
MemberInfo
MemberInfo
Gets the attribute member that would be used to set the named argument.
public
string
MemberName
Gets the name of the attribute member that would be used to set the named argument.
public
CustomAttributeTypedArgument
TypedValue
Gets a <see cref="T:System.Reflection.CustomAttributeTypedArgument" /> structure that can be used to obtain the type and value of the current named argument.
Methods
public
bool
Equals​(object obj)
obj
An object to compare with this instance, or <see langword="null" /> .
Returns <see langword="true" /> if <paramref name="obj" /> equals the type and value of this instance; otherwise, <see langword="false" /> .
Returns a value that indicates whether this instance is equal to a specified object.
public
bool
Equals​(CustomAttributeNamedArgument 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 hash code.
Returns the hash code for this instance.
public
string
ToString​() Returns A string that consists of the argument name, the equal sign, and a string representation of the argument value.
Returns a string that consists 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" /> .