Exemplo n.º 1
0
 /// <summary>
 /// Convert shared information
 /// to transmit to other devices
 /// </summary>
 /// <returns></returns>
 public byte[] ToArray()
 {
     var stack = new SimpleStack();
     stack.Push(Index);
     stack.PushName(Name);
     //stack.Push(Address);
     stack.Push(Description);
     stack.Push(Location);
     stack.Push(Class);
     stack.Push(Hardware);
     stack.Push(Version);
     stack.PushStringArray(Actions);
     return stack.Data;
 }