Show/Hide Toolbars

XSharp

The Language page contains some settings that control X# Language specific options. These settings apply to all dialects.

 

ProjectPropertiesLanguage

 

Item

Description

Command item

Allow Late Binding

Allow property access and method calls on expressions of type OBJECT and USUAL.

/lb

Allow Named Arguments

Allow named arguments (Default = TRUE for the Core dialect and FALSE for the other dialects). Changing the dialect may also automatically change this setting.

/namedargs

Allow Unsafe Code

Allow Unsafe code inside this assembly.

/unsafe

Case Sensitive

Enable/Disable case sensitivity.

/cs

Initialize Local variables

Automatically initialize local variables without initialization expression. Please note that for locals of type string, the initial value will depend on the 'Initialize strings' setting from the Dialect page.

/initlocals

Overflow Exceptions

Check for Overflow and Underflow for numeric expressions, like the CHECKED keyword.

/ovf

Use Zero Based Arrays

Use Zero Based Arrays.

/az

Enforce SELF

When checked, all references to methods and fields/properties inside a class should be prefixed with SELF (or SUPER).

/enforceself

Allow DOT for instance members

When checked, you can also use the DOT (.) operator to access instance fields, properties and methods. Otherwise, the COLON (:) operator is needed.

/allowdot

Enforce VIRTUAL/OVERRIDE

When checked, you MUST prefix methods with VIRTUAL and/or OVERRIDE when overriding methods in a parent class, or when defining a new method that can be overridden.

/enforceoverride

Allow Old Style assignments

When checked, allow the use of the single equals operator (=) for assignments. Otherwise, the Colon Equals (:=) operator is mandatory.

/allowoldstyleassignments

Modern Syntax

This options disables some old style features, such as certain comment characters.

/modernsyntax

Enable Memvar support

Enable support for memory variables (MEMVAR, PUBLIC, PRIVATE & PARAMETERS).

Please note that this is NOT supported for the Core and Vulcan dialects.

/memvar

Enable Undeclared variables support

Enable support for undeclared variables (these are resolved to MEMVARs).

Please note that this requires /memvar to be enabled as well.

/undeclared

Enable Implicit Namespace lookup

Enable the implicit lookup of classes defined in assemblies with an Implicit Namespace attribute.

/ins

Prefix classes with default Namespace

Prefix all classes that do not have a namespace prefix and are not in a begin namespace ... end namespace block with the namespace of the assembly.

/ns:<Namespace>

Additional Include paths

Additional include paths for the preprocessor. (It also looks through the folders set with the include environment variable.)

/i

Alternate standard header file

Name of an alternative standard header file (alternative for XSharpDefs.xh).

/stddefs

Suppress standard header file

Suppress inclusion of the standard header file (XSharpDefs.xh) in every file.

/nostddef