private static void TypesTest()
{
const string sourceId = "C++_netstream_test";
ulong timeId = 0L;
var stream = new NetStreamSender("default", "localhost", 2001);
stream.AddGraphAttribute(sourceId, timeId++, "int", 1);
stream.AddGraphAttribute(sourceId, timeId++, "float", (float)1);
stream.AddGraphAttribute(sourceId, timeId++, "double", 1.0);
stream.AddGraphAttribute(sourceId, timeId++, "long", 1L);
stream.AddGraphAttribute(sourceId, timeId++, "byte", (char)0);
stream.AddGraphAttribute(sourceId, timeId++, "boolean", true);
int[] v = { 1776, 7, 4 };
stream.AddGraphAttribute(sourceId, timeId++, "intArray", v);
float[] v2 = { 1776.3f, 7.3f };
stream.AddGraphAttribute(sourceId, timeId++, "floatArray", v2);
double[] v3 = { 776.3, .3 };
stream.AddGraphAttribute(sourceId, timeId++, "doubleArray", v3);
long[] v4 = { 1776, 7, 4 };
stream.AddGraphAttribute(sourceId, timeId++, "longArray", v4);
char[] v5 = { '0', (char)0, 'z' };
stream.AddGraphAttribute(sourceId, timeId++, "byteArray", v5);
bool[] v6 = { true, false };
stream.AddGraphAttribute(sourceId, timeId++, "booleanArray", v6);
stream.AddGraphAttribute(sourceId, timeId++, "string", "true");
stream.Close();
}