And if you want clients to note when something happens in your class, you can have them subscribe to events. Delegates A delegate encapsulates a method which a certain signature. You can encapsulate both static and instance methods in a delegate instance. It is an important topic, especially so because today's code comes from multiple sources, including the Internet. By Default code operates in safe mode where no pointers are allowed.
Type safety pays off.
However if you need pointers, you can still use them via unsafe code - and no marshaling is involved in calling their unsafe code. Trojans, viruses and Web spooling are the dreaded terms in the Internet world. Moreover, the compiler and execution engine work hand in hand and ensure that unsafe code is not executed in an untrusted environment. Exception handling and debugging One big advantage of .NET is that exception handling is standardized across languages. As mentioned earlier in the article the introduction of this feature implies some significant changes to both the language and the runtime.