Class ParameterNameAttribute
Specifies the name for a member. It can be applied to properties or method. Multiple names are allowed. This attribute is used to find members using reflection.
Inherited Members
Namespace: SpiceSharp.Attributes
Assembly: SpiceSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = true, Inherited = false)]
public sealed class ParameterNameAttribute : Attribute
Remarks
If this attribute is used on a private field, the source generator will automatically generate a property.
Constructors
ParameterNameAttribute(string)
Initializes a new instance of the ParameterNameAttribute class.
Declaration
public ParameterNameAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the parameter. |
Properties
Name
Gets the name of the parameter.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |