public Form1() { InitializeComponent(); RPC_Example r = new RPC_Example(); string str = "hello!"; /*ObjectInfo oo = new ObjectInfo(); oo.typeName = "sds"; oo.objectData = new byte[10]; for (int f = 0; f < 10; f++) { oo.objectData[f] =(byte) f; }* */ ff asfsa = new ff(); ObjectInfo o1 = new ObjectInfo(asfsa); object d1 = o1.GetObject(); // string hi =(string) o1.GetObject(); int b = 5; }
/// <summary> /// Преобразование массива в объект /// </summary> /// <param name="data"></param> /// <returns></returns> public static object ByteMassToObject(byte[] data) { ObjectInfo oi = new ObjectInfo(data); object rez = oi.GetObject(); return rez; }