Skip to main content

WorkspaceSymbolExtensions.GetDefaultValueSyntax Method

Containing Type: WorkspaceSymbolExtensions

Assembly: Roslynator.CSharp.Workspaces.dll

Overloads

MethodSummary
GetDefaultValueSyntax(ITypeSymbol, DefaultSyntaxOptions, SymbolDisplayFormat)Creates a new ExpressionSyntax that represents default value of the specified type symbol.
GetDefaultValueSyntax(ITypeSymbol, TypeSyntax, DefaultSyntaxOptions)Creates a new ExpressionSyntax that represents default value of the specified type symbol.

GetDefaultValueSyntax(ITypeSymbol, DefaultSyntaxOptions, SymbolDisplayFormat)

Creates a new ExpressionSyntax that represents default value of the specified type symbol.

public static Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax GetDefaultValueSyntax(this Microsoft.CodeAnalysis.ITypeSymbol typeSymbol, Roslynator.CSharp.DefaultSyntaxOptions options = None, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = null)

Parameters

typeSymbol ITypeSymbol

options DefaultSyntaxOptions

format SymbolDisplayFormat

Returns

ExpressionSyntax

GetDefaultValueSyntax(ITypeSymbol, TypeSyntax, DefaultSyntaxOptions)

Creates a new ExpressionSyntax that represents default value of the specified type symbol.

public static Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax GetDefaultValueSyntax(this Microsoft.CodeAnalysis.ITypeSymbol typeSymbol, Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, Roslynator.CSharp.DefaultSyntaxOptions options = None)

Parameters

typeSymbol ITypeSymbol

type TypeSyntax

options DefaultSyntaxOptions

Returns

ExpressionSyntax