Posts

Showing posts from August, 2013

C# inner object’s touch notation.

The notation will not create or change the internal object. That's it var  obj =  new   Obj        {               Inner = {CompanyName =  "Any name" }        }; Required that the inner object was created before of use. The full example:         class   Program        {               static   void  Main()              {                      var  obj =  new   Obj                            {                                    Inner = {CompanyName =  "Any name" }                            };              }        }         class   Obj        {               private   InnerObj  _inner =  new   InnerObj ();               public   InnerObj  Inner              {                      get                     {                             return  _inner;                     }                      set                     {                            _inner =  value ;                     }            

The .NET Asynchrony And Multithreading lecture (in progress, not finished)

Plain Threading     Thread.Sleep(0) vs Thread.Yield()     Foreground and Background Threads     finally blocks in the execution stack of background threads are circumvented         (including using)     Thread Priority     Memory-mapped files     Exception Handling         Swallow of an exception in the main thread.         Centralized exception handling             global event             only for an UI thread             AppDomain.CurrentDomain.UnhandledException                 app will shutdown or <legacyunhandledexceptionpolicy> Thread Pooling     Thread.CurrentThread.IsThreadPoolThread     Oversubscription         hill-climbing algorithm     Optimizing the Thread Pool     How Does the Minimum Thread Count Work? States     Synchronous         Thread-Local Storage - "TLS"             ThreadLocal<t> Class             ThreadStaticAttribute         Lazy<t> Class     Asyncronous         ExecutionCo