随笔分类 -  C#

asp.net 配置 web.config 禁用VS2013自带的Browser Link功能
摘要:我的字符被截断了 然后,我修改了下 web.config 的配置,在appSettings节点里加了这个,如下: <appSettings><add key="vs:EnableBrowserLink" value="false"/><appSettings> 再后来,就好了,我又开心了。 阅读全文

posted @ 2016-04-29 15:32 upwifi 阅读(613) 评论(0) 推荐(0)

|= 运算符
摘要:“或”赋值运算符。备注使用|=赋值运算符的表达式,例如x |= y等效于x = x | y不同的是x只计算一次。| 运算符对整型操作数执行按位逻辑“或”运算,对布尔操作数执行逻辑“或”运算。不能直接重载|=运算符,但用户定义的类型可以重载| 运算符(请参见operator)。示例// cs_operator_or_assignment.csusing System;class MainClass{ static void Main() { int a = 0x0c; a |= 0x06; Console.WriteLine("0x{0:x... 阅读全文

posted @ 2011-09-02 16:52 upwifi 阅读(520) 评论(1) 推荐(1)

BitConverter.ToUInt32
摘要:返回由字节数组中指定位置的四个字节转换来的 32 位无符号整数。// Example of the BitConverter.ToUInt32 method.using System;class BytesToUInt32Demo{ const string formatter = "{0,5}{1,17}{2,15}"; // Convert four byte array elements to a uint and display it. public static void BAToUInt32( byte[ ] bytes, int index ) { ... 阅读全文

posted @ 2011-09-02 16:02 upwifi 阅读(2882) 评论(0) 推荐(0)

导航