Table of Contents

Class CSharpParameter

Namespace
NanoByte.CodeGeneration
Assembly
NanoByte.CodeGeneration.dll

A parameter for a CSharpObjectCreation.

public class CSharpParameter
Inheritance
object
CSharpParameter

Constructors

CSharpParameter(CSharpIdentifier, string)

A parameter for a CSharpObjectCreation.

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 an 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