小编god*_*ter的帖子

访问私有字段

是否可以获取或设置私有字段?

我想得到System.Guid.c.有没有办法访问它或者我应该从strut复制代码并将字段公开?

.net c# private

18
推荐指数
3
解决办法
2万
查看次数

PHP写二进制响应

在PHP中有一种方法可以将二进制数据写入响应流,
就像(c#asp)的等价物一样

System.IO.BinaryWriter Binary = new System.IO.BinaryWriter(Response.OutputStream);
Binary.Write((System.Int32)1);//01000000
Binary.Write((System.Int32)1020);//FC030000
Binary.Close();
Run Code Online (Sandbox Code Playgroud)



我希望能够在ac#应用程序中读取响应,就像

System.Net.HttpWebRequest Request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create("URI");
System.IO.BinaryReader Binary = new System.IO.BinaryReader(Request.GetResponse().GetResponseStream());
System.Int32 i = Binary.ReadInt32();//1
i = Binary.ReadInt32();//1020
Binary.Close();
Run Code Online (Sandbox Code Playgroud)

php binary response

17
推荐指数
1
解决办法
1万
查看次数

标签 统计

.net ×1

binary ×1

c# ×1

php ×1

private ×1

response ×1