public void WriteReturn(RpcMethod method, BinaryWriter bw, object value) { switch (method.MethodId) { case 1: bw.Write((UInt64)value); break; } } }