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!

Avoiding type name confusion

Different languages use different terms to identify the fundamental managed types. Designers must take care to avoid language-specific terminology. This section describes a set of rules that help avoid type name confusion.

void Write(double doubleValue);
void Write(float floatValue);
void Write(long longValue);
void Write(int intValue);
void Write(short shortValue);

E.g., a class that supports reading a variety of data types from a stream might have:

double ReadDouble();
float ReadSingle();
long ReadIn64();
int ReadInt32();
short ReadInt16();

rather than a language-specific alternative such as:

double ReadDouble();
float ReadFloat();
long ReadLong();
int ReadInt();
short ReadShort();