struct CustomAttributeNamedArgument

in global :: System . Reflection

Represents a named argument of a custom attribute in the reflection-only context.


public CustomAttributeNamedArgument( MemberInfo memberInfo, object value )

Initializes a new instance of the class, which represents the specified field or property of the custom attribute, and specifies the value of the field or property.

  • memberInfo A field or property of the custom attribute. The new object represents this member and its value.
  • value The value of the field or property of the custom attribute.

public CustomAttributeNamedArgument( MemberInfo memberInfo, CustomAttributeTypedArgument typedArgument )

Initializes a new instance of the class, which represents the specified field or property of the custom attribute, and specifies a object that describes the type and value of the field or property.

  • memberInfo A field or property of the custom attribute. The new object represents this member and its value.
  • typedArgument An object that describes the type and value of the field or property.

public bool Equals( object obj )

Returns a value that indicates whether this instance is equal to a specified object.

  • obj An object to compare with this instance, or .
  • Returns if equals the type and value of this instance; otherwise, .

public bool IsField { get; }

Gets a value that indicates whether the named argument is a field.

  • Returns if the named argument is a field; otherwise, .

public MemberInfo MemberInfo { get; }

Gets the attribute member that would be used to set the named argument.

  • Returns The attribute member that would be used to set the named argument.

public string MemberName { get; }

Gets the name of the attribute member that would be used to set the named argument.

  • Returns The name of the attribute member that would be used to set the named argument.

public static bool op_Equality( CustomAttributeNamedArgument left, CustomAttributeNamedArgument right )

Tests whether two structures are equivalent.

  • left The structure to the left of the equality operator.
  • right The structure to the right of the equality operator.
  • Returns if the two structures are equal; otherwise, .

public static bool op_Inequality( CustomAttributeNamedArgument left, CustomAttributeNamedArgument right )

Tests whether two structures are different.

  • left The structure to the left of the inequality operator.
  • right The structure to the right of the inequality operator.
  • Returns if the two structures are different; otherwise, .

public CustomAttributeTypedArgument TypedValue { get; }

Gets a structure that can be used to obtain the type and value of the current named argument.

  • Returns A structure that can be used to obtain the type and value of the current named argument.

public string ToString( )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public bool Equals( CustomAttributeNamedArgument other )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.