SyntaxGenerator.DefaultExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
- type
- ITypeSymbol
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
- 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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.