摘要:
因为新项目将主要用到CSharp,并同时会涉及Mix programming的问题,与Native C++ and C++ CLI (common language infrastructure),今天迅速的google下,做些初步了解先。现在的理解:1. 这里说的mix programming的意思应该是:让CSharp的module,Native C++ module和C++ CLI的modu... 阅读全文
posted @ 2010-02-22 16:06
能巴
阅读(979)
评论(0)
推荐(0)
摘要:
Snippet is so convenient to use in C#!I need to get the way / list of getting snippets in C# later on really!Now give a good example of using snippet to write switch:enum Months { Jan, Feb, Mar, Apr, ... 阅读全文
posted @ 2010-02-22 14:25
能巴
阅读(202)
评论(0)
推荐(0)
摘要:
ARRAYS ARE REFERENCE TYPESAn array is a reference type object. Therefore, assigning one array to another just makes the variable assigned to contain an identical reference to the same object inmemory. 阅读全文
posted @ 2010-02-22 14:03
能巴
阅读(194)
评论(0)
推荐(0)
摘要:
In C#, content regards with string includes:1. String typeIts features: a. built-in reference type. b. immutable (meaning that a string can’t be modified once created) and sealed (meaning that... 阅读全文
posted @ 2010-02-22 12:03
能巴
阅读(235)
评论(0)
推荐(0)
摘要:
This problem, not being able to assign null to value types, was alleviated in C# 2.0 with the introduction of a feature called nullable types. It essentially allows you to declarenullable value types ... 阅读全文
posted @ 2010-02-22 11:34
能巴
阅读(221)
评论(0)
推荐(0)
摘要:
C# Aliases and the CTSC# types are specified with keywords that alias .NET CLR types. Table 4.1 shows all the .NET types and which C# keywords alias them. 阅读全文
posted @ 2010-02-22 11:26
能巴
阅读(247)
评论(0)
推荐(0)
摘要:
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)

浙公网安备 33010602011771号