IVariableDeclaratorOperation.Initializer Property
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.
Optional initializer of the variable.
public:
property Microsoft::CodeAnalysis::Operations::IVariableInitializerOperation ^ Initializer { Microsoft::CodeAnalysis::Operations::IVariableInitializerOperation ^ get(); };
public Microsoft.CodeAnalysis.Operations.IVariableInitializerOperation Initializer { get; }
public Microsoft.CodeAnalysis.Operations.IVariableInitializerOperation? Initializer { get; }
member this.Initializer : Microsoft.CodeAnalysis.Operations.IVariableInitializerOperation
Public ReadOnly Property Initializer As IVariableInitializerOperation
Property Value
Remarks
If this variable is in an IVariableDeclarationOperation, the initializer may be located in the parent operation. Call GetVariableInitializer(IVariableDeclaratorOperation) to check in all locations. It is only possible to have initializers in both locations in VB invalid code scenarios.
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.