Interface contains definitions for a group of related functionalties that a class or a struct can implement. Interface in C# is similar to an abstract class in which all methods are abstract (Why C# interface methods not declared as abstract).
Interface can contain methods, properties, events, indexers but it can't contain constants, fields...
Saturday, July 26, 2014
Friday, July 25, 2014
How to Asynchronous Programming in C#
async and await are the main keywords in asynchronous programming. You can use asynchronous with things such as downloads, uploads etc.
Below example shows you how to get a specific Http Header asynchronously.
Name of async method by convention ends with async.
Return type is one of the following,
Task<TResult>
Task
void
Method...
Wednesday, July 9, 2014
Covariance and Contravariance in Generics
Covariance
Enables you to use more specific type than the type originally specified.
IEnumerable<Derived> d = new List<Derived>();
IEnumerable<Base> b = d;
Contravariance
Enables you to use more generic type than the type originally specified.
Action<Base> b = (target) => { Console.WriteLine(target.GetType().Name); };
Action<Derived> d = b;
d(new Derived());
Examples...
Tuesday, July 8, 2014
Introduction to Entity Framework
Entity Framework (EF) is an object-relational mapper (ORM) for .NET. Entity Framework can be used to work with relational data using domain-specific objects. Entity Framework eliminates need for data access code that programmers usually need to write. The codes you write with Entity Framework will be converted to SQL queries.
You can view...
Monday, July 7, 2014
What is ASP.NET Core
ASP.NET Core (previously known as ASP.NET VNext and then ASP.NET 5) is the next version of ASP.NET. Unlike its predecessors, Core is is open source available on github.
Here are some of the features
Open source and cross platform
Can run on .NET core or on full .NET framework
Leander and modular
ASP.NET Core is no longer based on System.Web.dll it is now based on NuGet packages
Built-in...
Subscribe to:
Posts (Atom)
Powered by Blogger.
Software Architect at Surge Global/ Certified Scrum Master
Experienced in Product Design, Software Engineering, Team management and Practicing Agile methodologies.