SyntaxGenerator.DefaultExpression Method

Definition

Overloads

DefaultExpression(ITypeSymbol)
DefaultExpression(SyntaxNode)

An expression that represents the default value of a type. This is typically a null value for reference types or a zero-filled value for value types.

DefaultExpression(ITypeSymbol)

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
public:
 abstract Microsoft::CodeAnalysis::SyntaxNode ^ DefaultExpression(Microsoft::CodeAnalysis::ITypeSymbol ^ type);
public abstract Microsoft.CodeAnalysis.SyntaxNode DefaultExpression (Microsoft.CodeAnalysis.ITypeSymbol type);
abstract member DefaultExpression : Microsoft.CodeAnalysis.ITypeSymbol -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function DefaultExpression (type As ITypeSymbol) As SyntaxNode

Parameters

Returns

Applies to

DefaultExpression(SyntaxNode)

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

An expression that represents the default value of a type. This is typically a null value for reference types or a zero-filled value for value types.

public:
 abstract Microsoft::CodeAnalysis::SyntaxNode ^ DefaultExpression(Microsoft::CodeAnalysis::SyntaxNode ^ type);
public abstract Microsoft.CodeAnalysis.SyntaxNode DefaultExpression (Microsoft.CodeAnalysis.SyntaxNode type);
abstract member DefaultExpression : Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function DefaultExpression (type As SyntaxNode) As SyntaxNode

Parameters

type
SyntaxNode

Returns

Applies to