Class CSharpParameter
- Namespace
- NanoByte.CodeGeneration
- Assembly
- NanoByte.CodeGeneration.dll
A parameter for a CSharpConstructor.
public class CSharpParameter
- Inheritance
-
CSharpParameter
- Inherited Members
Constructors
CSharpParameter(CSharpIdentifier, string)
A parameter for a CSharpConstructor.
public CSharpParameter(CSharpIdentifier type, string name)
Parameters
type
CSharpIdentifierThe type of the parameter.
name
stringThe name of the parameter.
Properties
Name
The name of the parameter.
public string Name { get; }
Property Value
Type
The type of the parameter.
public CSharpIdentifier Type { get; }
Property Value
Value
The value to set for this parameter when invoking it. Passes through a argument of the same name when not set.
public object? Value { get; set; }
Property Value
Methods
ToString()
Returns the type, name and value of the parameter.
public override string ToString()