Compartilhar via


prjOptionInfer Enum

Definition

Determines whether local type inference in declaring variables is used in the project.

public enum class prjOptionInfer
public enum class prjOptionInfer
enum prjOptionInfer
[System.Runtime.InteropServices.Guid("E629A10F-3E9C-4F54-A281-FAB74B25AD7C")]
public enum prjOptionInfer
[<System.Runtime.InteropServices.Guid("E629A10F-3E9C-4F54-A281-FAB74B25AD7C")>]
type prjOptionInfer = 
Public Enum prjOptionInfer
Inheritance
prjOptionInfer
Attributes

Fields

Name Value Description
prjOptionInferOff 0

Disables local type inference for the project.

prjOptionInferOn 1

Enables local type inference for the project.

Remarks

When you use pkgOptionInferOn, you can declare variables without explicitly stating a data type. The compiler infers the data type of a variable from the type of its initialization expression. For more information, see Option Infer Statement.

Applies to