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.

class System.​Text.​Json.​Serialization.​Metadata.​JsonParameterInfo

Assembly: System.Text.Json

Inheritance: object → JsonParameterInfo

Provides JSON serialization-related metadata about a constructor parameter.

Properties

public Type
DeclaringType
Gets the declaring type of the constructor.
AttributeProvider
Gets a custom attribute provider for the current parameter.
public object
DefaultValue
Gets a value indicating the default value if the parameter has a default value.
public bool
HasDefaultValue
Gets a value indicating whether the parameter has a default value.
public bool
IsNullable
Gets a value indicating whether the constructor parameter is annotated as nullable.
public bool
IsMemberInitializer
Gets a value indicating whether the parameter represents a required or init-only member initializer.
public string
Name
Gets the name of the parameter.
public Type
ParameterType
Gets the type of this parameter.
public int
Position
Gets the zero-based position of the parameter in the formal parameter list.

Methods

public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object