prjOptionInfer Enum

Definition

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

[System.Runtime.InteropServices.Guid("E629A10F-3E9C-4F54-A281-FAB74B25AD7C")]
public enum prjOptionInfer
Inheritance
prjOptionInfer
Attributes

Fields

prjOptionInferOff

Disables local type inference for the project.

prjOptionInferOn

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.