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
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.