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