上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 63 下一页
摘要: 1. Class is reference type while Struct is value type.2. Referece type data will be allocated on the heap always, while value type data will be either on the stack as local variable for example or on ... 阅读全文
posted @ 2010-02-22 11:14 能巴 阅读(725) 评论(0) 推荐(0)
摘要: We should know boxing and unboxing clearly. But what's the actual performance affect happened in that process? Below diagram can give a overview:A boxing process will bring in two copies of the same d... 阅读全文
posted @ 2010-02-22 10:25 能巴 阅读(301) 评论(0) 推荐(0)
摘要: Labels are program elements that simply identify a location in a program. Their only practical use is to support the goto statement. The goto statement allows program control tojump to the place where... 阅读全文
posted @ 2010-02-21 17:17 能巴 阅读(171) 评论(0) 推荐(0)
摘要: C# provides two operators: CHECKED/UNCHECKED to handle whether to treat the overflow/underflow as system error or ignore it. By default, this option is unchecked. As an alternative, you can set this a... 阅读全文
posted @ 2010-02-21 17:13 能巴 阅读(287) 评论(0) 推荐(0)
摘要: Logical OperatorsLogical operators perform Boolean logic on two expressions. There are three types of logical operators in C#: bitwise, Boolean, and conditional.The bitwise logical operators perform B... 阅读全文
posted @ 2010-02-21 16:56 能巴 阅读(308) 评论(0) 推荐(0)
摘要: As we know, for main, it's so common to see it looks like below:int main(){// do your work.return 0;}At least for a console application, the returned value 0 here can be consumed later in script tool ... 阅读全文
posted @ 2010-02-21 16:16 能巴 阅读(218) 评论(0) 推荐(0)
摘要: The tradeoff between decimal and double is precision versus range. The decimal is the best choice when precision is required, but choose a double for the greatest range. The decimaltype is well suited... 阅读全文
posted @ 2010-02-21 15:45 能巴 阅读(236) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2010-02-21 15:36 能巴 阅读(224) 评论(0) 推荐(0)
摘要: there are three types of commenting syntax in C#:multiline, single line, and XML.XML Documentation CommentsIn addition to providing code commenting, an XML documentation comment supports tools that ex... 阅读全文
posted @ 2010-02-21 15:15 能巴 阅读(422) 评论(0) 推荐(0)
摘要: On the Debug menu, there are two options to run a program, Start Debugging (F5) and Start Without Debugging (Ctrl+F5). The differences between these two options are thatStart Debugging stops on breakp... 阅读全文
posted @ 2010-02-21 14:58 能巴 阅读(184) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 63 下一页