Introduction When an assembly has been loaded in an Application Domain, the embeded code can be executed. This code can be executed in the current Application Domain or in another one, we will see how to proceed by differents way. For all the following examples we will use a namespace MyNameSpace containing 2 classes : [...]
Posts Tagged ‘C#’
How to execute code in another AppDomain that the current one
Posted in C# 2.0 Tips, C# 3.0 Tips, C#2.0 Exam 70-536, tagged C# on April 6, 2010 | Leave a Comment »
.Net 4.0 : Overview on Parallel class
Posted in C#4.0 Tips, tagged C# on November 18, 2009 | Leave a Comment »
Introduction: In the .Net 4.0 we can find a new class Parallel containing many static methods to help us in parallel programing. System.Threading.Parallel provides one For static method which will be the main point of this article. As a matter of fact at the end of this article you’ll find a link redirecting you in [...]
Avoid beep sound when you press Escape or Enter (OnKeyPress Event) on a focused control
Posted in C# 2.0 Tips, C# 3.0 Tips, tagged C# on October 21, 2009 | Leave a Comment »
Yesterday, i was facing a curious problem on my form. I have a DateTimePicker control , and when i choose manually the date and i press Enter or Escape, i have an annoying sound. You know, this sound that is heard when Windows displays an error message box. I have bypassed the problem by creating [...]
Shallow Copy VS Deep Copy in .Net
Posted in C#2.0 Exam 70-536, tagged C# on October 4, 2009 |
Introduction : In the .Net Framework there is 2 distincts memory space to store our objects: STACK and HEAP. On the stack is stored value types of .net framework as struct, enum, primitives types…and all what inherit from System.Value. On the heap is stored reference types of .net framework as all object which doesn’t inherit [...]
AMP: Asynchronous Model Programing
Posted in C#2.0 Exam 70-536, tagged C# on September 20, 2009 |
Introduction Developping a multithread application can be realised in several ways. Let’s see about one of these ways : using Asynchronous delegates calls. In this article we will see step by step the interrest of using asynchronous delegates calls, by 4 examples. Ιrst Example : Synchronous delegate call Output : //Waiting for 5 seconds before having [...]