namespace ConsoleApplication2 { class Program { static void Main(string[] args) { Console.Write(“Shashangka-“); Console.Write(“Shekhar-“); Console.Write(“Mandal”); //Output: Shashangka-Shekhar-Mandal Console.WriteLine(); Console.WriteLine(“ASp.Net”); Console.WriteLine(“MVC”); //Output: ASp.Net // MVC Console.ReadLine(); } } }
Category: C#
Error & Exception
In this article we will focus on Exception Handling, clarify our knowledge on different type of Exceptions, and also identify difference between Exception and Error. Short Overview: Error: Error means system doesn’t handle. Stop the application being executed with errors. Cause while syntax error, may occur while writing code. Exception: Abnormal things happen cause Exception. Interrupts the application […]
IEnumerable Vs IQueryable
Differences between them based on their properties : IEnumerable Namespace: System.Collections Namespace Derives from: No base interface Deferred Execution : Supported Lazy Loading : Not Supported How does it work : While querying data from database, IEnumerable execute select query on server side, load data in-memory on client side and then filter data. Hence does more work and becomes slow. Suitable for : LINQ to Object and […]
Events
In this article we will try to understand what is event and how to handle and raise Events. Note: Before start reading this article please hold a clear concept on delegates. Follow the link to read the previous article on Delegates.