Table of Contents

Class CSharpIndexer

Namespace
NanoByte.CodeGeneration
Assembly
NanoByte.CodeGeneration.dll

An indexer on a CSharpInterface or CSharpClass.

public class CSharpIndexer
Inheritance
object
CSharpIndexer

Constructors

CSharpIndexer(CSharpIdentifier, CSharpParameter)

An indexer on a CSharpInterface or CSharpClass.

public CSharpIndexer(CSharpIdentifier type, CSharpParameter parameter)

Parameters

type CSharpIdentifier

The type of the value returned by the indexer.

parameter CSharpParameter

The parameter the indexer is addressed with.

Properties

ExplicitInterface

The interface to explicitly implement this indexer for; null for a regular member.

public CSharpIdentifier? ExplicitInterface { get; set; }

Property Value

CSharpIdentifier

GetterExpression

An expression body for the indexer's getter as a raw C# expression (e.g. this[id]).

public string? GetterExpression { get; set; }

Property Value

string

Parameter

The parameter the indexer is addressed with.

public CSharpParameter Parameter { get; }

Property Value

CSharpParameter

Summary

A summary used for an XML documentation comment.

public string? Summary { get; set; }

Property Value

string

Type

The type of the value returned by the indexer.

public CSharpIdentifier Type { get; }

Property Value

CSharpIdentifier

Methods

ToString()

Returns the signature of the indexer.

public override string ToString()

Returns

string