from C++ to C## DotNet - 窗口里的风景
E*s
1 楼
1. move to managed Environment
C++: low-level platform-neutral object-oriented language
C#: higher-level component-oriented language
C++: have control over creation, lifetime of objects. you can create object
on stack, on the heap... using new
C#: no longer truly control , garbage collector will take care.
no multiple inheritance, no templates.
TYPES: are nothing more than a mapping to the underlying CLR types
2.Reference and Value types
basic knowlege, 忽略不写
3. structs
C++: low-level platform-neutral object-oriented language
C#: higher-level component-oriented language
C++: have control over creation, lifetime of objects. you can create object
on stack, on the heap... using new
C#: no longer truly control , garbage collector will take care.
no multiple inheritance, no templates.
TYPES: are nothing more than a mapping to the underlying CLR types
2.Reference and Value types
basic knowlege, 忽略不写
3. structs