12.07.2015 Views

User's Manual SiteView – Data Logger Software

User's Manual SiteView – Data Logger Software

User's Manual SiteView – Data Logger Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 15 - EQUATION REFERENCESC# Language Source Code ReferencesBasic data typesName Description Size(byte)int Signed Integral type 4uint Unsigned integral type 4short Signed short integral type (-32768 to + 232767)ushort Unsigned short integral type (0 to 65535) 2long Signed long integral type 8ulong Unsigned long integral type 8double 64-bit floating point type 8float 32-bit floating point type 4String/stringA sequence of zero or more Unicodecharacters.Byte/byte 0 – 255 integral value 1Char/char Unicode character 2Boolean/boolBoolean type (true or false)enumEnumeration typeObject/objectAny typeBasic OperatorsName Description ExampleClass1.y = 1;. The dot operator (.) is used for member access.The dot operator specifies a member of a type ornamespace() Parentheses specify the order of operations in anexpression.Parentheses are used to specify casts, or typeconversions[] Square brackets ([]) are used for arrays, indexers,and attributes. They can also be used with pointers.Y = (1 + 2 )/ 3;double value1 = 1.5;int value2 = (int) value1;Int [] array = new int[5];++ The increment operator (++) increments itsoperand by 1. The increment operator can appearbefore or after its operand:Int i = 0;I++;-- The decrement operator (--) decrements its Int I = 0;<strong>SiteView</strong> User’s <strong>Manual</strong> – Microedge Instruments Inc. 185/200

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!