NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

7.2 Primitive types

The primitive types are identified through keywords, which are primitive for predefined structure types in the System namespace. An primitive type and the structure type it aliases are completely indistinguishable. In other words, writing the reserved word Byte is exactly the same as writing System.Byte.

Because aprimitive type aliases a structure type, every primitive type has members. For example, Integer has the members declared in System.Int32. Literals can be treated as instances of their corresponding types.

The primitive types differ from other structure types in that they permit certain additional operations:

Visual Basic 7.0 defines the following primitive types:

It is important note is that signed bytes and unsigned integral types are not supported in Visual Basic 7.0. As a result, there are four value types in the type system that are illegal to use in a program: System.SByte, System.UInt16, System.UInt32 and System.UInt64. Any reference to these types will generate an error.

PrimitiveTypeName ::= NumericTypeName | Boolean | Date | Char
NumericTypeName ::= IntegralTypeName | FloatingPointTypeName | Decimal
IntegralTypeName ::= Byte | Short | Integer | Long
FloatingPointTypeName ::= Single | Double