Super Funda of OOPs in C# - Part 1

C# Language is an Object Oriented Programming model language from Microsoft which is evolving with day by day. It is a leading programming language in Microsoft stacks. As per the standard guidelines of this language, it behaves in following manner while making a type(class) ready to work - (1) Default initialization:(2) Default inheritance and (3) Default constructor [More]

Starting with Events in WPF and MVVM pattern using PRISM library

This article is written to address beginners who want to know how to start with events in MVVM. This article covers the click event for the explanation. Through the given small bullet steps in this article, a novice programmer can easily understand the flow-mechanism by seeing where and how to write the event handling related code part. There are a lot of frameworks available with WPF like Gala Soft, PRISM and so on; in this article explanation, PRISM framework has been used in WPF MVVM. [More]

How to convert UTF7 string into ANSI in C#

The simplest way to transforming a UTF-7 encoded string is to use the .net System.Text.Encoding abstract class. It internally uses System.Security class library to provide the transform we are targeting for like ASCII, BigEndianUnicode, Unicode, UTF32, UTF7, and UTF8. [More]

Asynchronous and Parallel Programming

In case of Parallel programming, there must be multiple threads otherwise how can that get processed/done in parallel. In this case programmer have more control over threads/cores of CPUs. If we say that Asynchronous is of no-wait time & continuous execution then this clears itself that we all talking about a Single threaded mechanism. [More]

Const vs Readonly in C#

In short, when an expression references a constant, the value of constant is obtained at compile time only, it means all expressions replaced with constant value. But, If expression is referencing a Readonly field then the value of field is obtained at runtime. [More]

How to use Data Access Application Block – Enterprise Library

This sample solution has a website, class library for Data Transfer Objects and a class library for Data Access. It is simple solution targeted to explain the usage of DAAB so it doesn’t have more layers and complexity. We will call a data access method directly from our website and that data access method will use DAAB to process our request. [More]

Database provider factory not set for the static DatabaseFactory

Database provider factory not set for the static DatabaseFactory. Set a provider factory invoking the DatabaseFactory.SetProviderFactory method or by specifying custom mappings by calling the DatabaseFactory.SetDatabases method.
New Enterprise Library version 6 requires to set for factory method if we are using xml configuration files to configure application blocks. [More]

Microsoft Enterprise Library 6 - new release

Microsoft has released Enterprise Library version 6.0 in April-2013. Enterprise Library is more robust framework or class library written with performance and resource management best practices. Instead of reinvesting the wheel for data access framework, or other, you can easily plug-in this library into your application. It has blocks for Windows Azure or cloud specific also.Enterprise Library is basically a collection of application blocks. These application blocs are for helping developers by providing reusable components (for example, Data Application Block deals for common data access jobs). These blocks are easy to plug-in into projects. [More]