Tag Archives: .NET

My C# 6 Favorite Features

Recently Microsoft released Visual Studio 2015 and the new C# 6 language. I want to share with you my favorite features of C# 6. Null conditional operator: Every developer hate to get NullReferenceException when the application running, this means we … Continue reading

Posted in C# 6, WPF | Tagged | Leave a comment

Closures in c#

As a c# developers we write a lot of lambda expressions. And with lambda expressions we can access variables outside the expression block. For Example: class Program { static Func<int,int> Add; static void Main(string[] args) { int x = 5; … Continue reading

Posted in .NET, .NET 4.5, C# 5 | Tagged | Leave a comment

IDispose and Finalize relations in .NET

What is IDispose in .NET? The IDispose interface gives the programmer way to free unmanaged resources and events handlers, in order to avoid memory leaks. For example: public class UnmanagedResourceUser :IDisposable { public void Dispose() { //Free unmanaged resources } … Continue reading

Posted in .NET 4.5 | Tagged | Leave a comment