TemplateArgument Class

Represents a named argument that can be passed to a template.

public class TemplateArgument

Constructors

NameDescription
TemplateArgument(string, Type?)Initializes a new instance of the TemplateArgument class.

TemplateArgument(string, Type?)

TemplateArgument.cs

Initializes a new instance of the TemplateArgument class.

public TemplateArgument(string name, Type? type)

Parameters

name string
The name of the argument.
type Type?
The type of the argument, or null for dynamic type.

Properties

NameDescription
NameGets the name of the argument.
TypeGets the type of the argument, or null for dynamic type.

Gets the name of the argument.

public string Name { get; }

Property value

string

Gets the type of the argument, or null for dynamic type.

public Type? Type { get; }

Property value

Type?