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
Methods
ConvertConstantValue(object)
public string ConvertConstantValue(object constantValue)
Parameters
constantValue
object
Returns
ConvertSymbol(ISymbol)
public string ConvertSymbol(ISymbol symbol)
Parameters
symbol
ISymbol
Returns
ConvertSymbol(ISymbol, TokenWriter, CSharpFormattingOptions)
public void ConvertSymbol(ISymbol symbol, TokenWriter writer, CSharpFormattingOptions formattingPolicy)
Parameters
symbol
ISymbolwriter
TokenWriterformattingPolicy
CSharpFormattingOptions
ConvertType(IType)
public string ConvertType(IType type)
Parameters
type
IType
Returns
ConvertType(IType, TokenWriter, CSharpFormattingOptions)
public void ConvertType(IType type, TokenWriter writer, CSharpFormattingOptions formattingPolicy)
Parameters
type
ITypewriter
TokenWriterformattingPolicy
CSharpFormattingOptions
ConvertVariable(IVariable)
public string ConvertVariable(IVariable v)
Parameters
Returns
WrapComment(string)
public string WrapComment(string comment)
Parameters
comment
string