Latest Blog Posts - .NET Examples
- Singleton Design Pattern C# ExampleSingleton is one of the most frequently used Design Patterns in Software Engineering. You should apply Singleton pattern if you want to ensure that your class will have only one instance with a global point of access to it. Let's look at Singleton c...
- C# Design Patterns Examples: FactoryFactory it's such a Design Pattern which defines an interface for creating an object, but lets the classes that implement the interface decide which class to instantiate. Factory Pattern lets a class postpone instantiation to sub-classes. Le...
- Factory Design Pattern C# ExampleFactory it's such a Design Pattern which defines an interface for creating an object, but lets the classes that implement the interface decide which class to instantiate. Factory Pattern lets a class postpone instantiation to sub-classes. Let's s...
- Managing Dependency Injections in C# with AutofacDependency Injection in software engineering is a specific form of invasion of control. Conventionally, when an object needs access to a particular service, this object takes responsibility for access to this service. Commonly, an object receives a l...
- Managing Dependency Injection in C# with AutofacDependency Injection in software engineering is a specific form of invasion of control. Conventionally, when an object needs access to a particular service, this object takes responsibility for access to this service. Commonly, an object receives a l...
- C# Object-to-Object Mapping - AutoMapper ExampleImaging this scenario: We have an Employee object with many properties in it, and we want to display our Employee in a DataGrid or some other control. For this purpose we need a lighter version of Employee, let's call it EmployeeViewItem. A list of E...
- C# Reading XML Recursively (XmlDocument)I'll be honest - I hate Recursion! But, nothing you can do, there are some situations when you know - this problem should be solved with Recursion. One of such problems is XML reading. Today I'll show a simple example of reading XmlDocument rec...
- WPF Start New Background Process using TaskIn GUI programming there is exist some very common problem - if some operation takes too much time the GUI will become unresponsive. For example, if you want establish connection with a server, or fetch some data from database or a large file, this p...
- C# 5.0 Asynchronous Programming Example (Async, Await)C# 5.0 and .NET Framework 4.5 bring to developer a very nice feature called Asynchronous Programming. Asynchronous Programming is based on Task Parallel Library (TPL). As you probably know traditional techniques for writing asynchronous programs are...
- C# Async Programming Example in WPF (Async, Await)C# 5.0 and .NET Framework 4.5 bring to developer a very nice feature called Asynchronous Programming. Asynchronous Programming is based on Task Parallel Library (TPL). As you probably know traditional techniques for writing asynchronous programs are...
Loading Comments...
Comments
{ds_PageTotalItemCount} commentcomments
{pvComments::date}
{pvComments::comment}




