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
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.