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
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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.