Table of Contents

Class CSharpAmbience

Namespace
ICSharpCode.Decompiler.CSharp.OutputVisitor
Assembly
ICSharpCode.Decompiler.dll

C# ambience. Used to convert type system symbols to text (usually for displaying the symbol to the user; e.g. in editor tooltips)

public class CSharpAmbience : IAmbience
Inheritance
CSharpAmbience
Implements
Inherited Members

Constructors

CSharpAmbience()

public CSharpAmbience()

Properties

ConversionFlags

public ConversionFlags ConversionFlags { get; set; }

Property Value

ConversionFlags

Methods

ConvertConstantValue(object)

public string ConvertConstantValue(object constantValue)

Parameters

constantValue object

Returns

string

ConvertSymbol(ISymbol)

public string ConvertSymbol(ISymbol symbol)

Parameters

symbol ISymbol

Returns

string

ConvertSymbol(ISymbol, TokenWriter, CSharpFormattingOptions)

public void ConvertSymbol(ISymbol symbol, TokenWriter writer, CSharpFormattingOptions formattingPolicy)

Parameters

symbol ISymbol
writer TokenWriter
formattingPolicy CSharpFormattingOptions

ConvertType(IType)

public string ConvertType(IType type)

Parameters

type IType

Returns

string

ConvertType(IType, TokenWriter, CSharpFormattingOptions)

public void ConvertType(IType type, TokenWriter writer, CSharpFormattingOptions formattingPolicy)

Parameters

type IType
writer TokenWriter
formattingPolicy CSharpFormattingOptions

ConvertVariable(IVariable)

public string ConvertVariable(IVariable v)

Parameters

v IVariable

Returns

string

WrapComment(string)

public string WrapComment(string comment)

Parameters

comment string

Returns

string