Show / Hide Table of Contents

Class CSharpAttribute

An attribute on a CSharpInterface, CSharpClass or CSharpProperty.

Inheritance
Object
CSharpAttribute
Namespace: NanoByte.CodeGeneration
Assembly: NanoByte.CodeGeneration.dll
Syntax
public class CSharpAttribute : Object

Constructors

CSharpAttribute(CSharpIdentifier)

Creates a new attribute.

Declaration
public CSharpAttribute(CSharpIdentifier identifier)
Parameters
Type Name Description
CSharpIdentifier identifier

The type of the attribute.

Properties

Arguments

Arguments for the attribute.

Declaration
public List<object> Arguments { get; }
Property Value
Type Description
List<Object>

Identifier

The type of the attribute.

Declaration
public CSharpIdentifier Identifier { get; }
Property Value
Type Description
CSharpIdentifier

NamedArguments

Named Arguments for the attribute.

Declaration
public List<(string, object)> NamedArguments { get; }
Property Value
Type Description
List<(, )<String, Object>>
In This Article
Back to top Copyright Bastian Eicher