Sunday, October 12, 2008

C# survival kit

* C# is the first “component oriented” language in the C/C++ family

* csharp string <--> C++ wchar_t
* to display a string from multiline (somewhat equivalent to the C++ backslash ):
string toto = @"toto
toto";
* One must specify “override” to the method in the subclass if one want to override a virtual method from the superclass (as opposed to C++ where override is automatic)
* Mutexes are of two types: local mutexes and named system mutexes. If you create a Mutex object using a constructor that accepts a name, it is associated with an operating-system object of that name. Named system mutexes are visible throughout the operating system, and can be used to synchronize the activities of processes.

No comments: