Class CSharpIndexer
- Namespace
- NanoByte.CodeGeneration
- Assembly
- NanoByte.CodeGeneration.dll
An indexer on a CSharpInterface or CSharpClass.
public class CSharpIndexer
- Inheritance
-
objectCSharpIndexer
Constructors
CSharpIndexer(CSharpIdentifier, CSharpParameter)
An indexer on a CSharpInterface or CSharpClass.
public CSharpIndexer(CSharpIdentifier type, CSharpParameter parameter)
Parameters
typeCSharpIdentifierThe type of the value returned by the indexer.
parameterCSharpParameterThe 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
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
Parameter
The parameter the indexer is addressed with.
public CSharpParameter Parameter { get; }
Property Value
Summary
A summary used for an XML documentation comment.
public string? Summary { get; set; }
Property Value
Type
The type of the value returned by the indexer.
public CSharpIdentifier Type { get; }
Property Value
Methods
ToString()
Returns the signature of the indexer.
public override string ToString()