Table of Contents

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 CSharpIdentifier

The type of the parameter.

name string

The name of the parameter.

Properties

Name

The name of the parameter.

public string Name { get; }

Property Value

string

Type

The type of the parameter.

public CSharpIdentifier Type { get; }

Property Value

CSharpIdentifier

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

object

Methods

ToString()

Returns the type, name and value of the parameter.

public override string ToString()

Returns

string