examples of literal notation. By convention, predefined types are denoted by the use of keywords or special syntactic constructs of the language. Type Name Description Nullable Mutable Identity Example byte val = 24; byte Unsigned 8-bit integer No No No sbyte val = 24; sbyte Signed 8-bit integer No No No ushort val = 24; ushort Unsigned 16-bit No No No integer val = 24; short Signed 16-bit integer No No No uint val = 24; uint Unsigned 32-bit No No No integer int val = 24; int Signed 32-bit integer No No No ulong val = 24; ulong Unsigned 64-bit No No No integer long val = 24; long Signed 64-bit integer No No No val = 1.23; float Single precision No No No floating point double val = 1.23; double Double precision No No No floating point decimal val = decimal A 128-bit precision No No No 10.2m; floating point bool val = false; bool Boolean value No No No char val = 'a'; Character value No No No char string val = string String value Yes Yes No stream val = stream A stream of characters Yes Yes Yes $[AAFE]; binary val = binary Binary value (array of Yes Yes No $[AAFE]; bytes) Guid val = guid A GUID value No No No array<int> val = array<int> Array type is a Yes Yes No [1,2]; collection type set<int> val = set<int> Set type is a collection Yes Yes No {1,2}; type
examples of literal notation. By convention, predefined types are denoted by the use of keywords or special syntactic constructs of the language. Type Name Description Nullable Mutable Identity Example byte Unsigned 8-bit integer No No No byte val = 24; sbyte Signed 8-bit integer No No No sbyte val = 24; ushort Unsigned 16-bit integer No No No ushort val = 24; short Signed 16-bit integer No No No val = 24; uint Unsigned 32-bit integer No No No uint val = 24; int Signed 32-bit integer No No No int val = 24; ulong Unsigned 64-bit integer No No No ulong val = 24; long Signed 64-bit integer No No No long val = 24; float Single precision floating point No No No val = 1.23; double Double precision floating point No No No double val = 1.23; decimal A 128-bit precision floating point No No No decimal val = 10.2m; bool Boolean value No No No bool val = false; char Character value No No No char val = 'a'; string String value Yes Yes No string val = stream A stream of characters Yes Yes Yes stream val = $[AAFE]; binary Binary value (array of bytes) Yes Yes No binary val = $[AAFE]; guid A GUID value No No No Guid val = array<int> Array type is a collection type Yes Yes No array<int> val = [1,2]; set<int> Set type is a collection type Yes Yes No set<int> val = {1,2};
OPN%20Programming%20Guide%20v1.docx