Abhi's den...

The piece of code which nobody cracked...

Browse by Tags

All Tags » .Net (RSS)
Calling Web Services in classic ASP
Last day my colleague asked me the provide her a solution to call the Web service from classic ASP. (Yes Classic ASP. still people are using this :D ) We can call web service SOAP toolkit also. But invoking the service using the XMLHTTP object was more...
Extension Methods - add methods to class
Consider the following class public class Person { public string FirstName { get ; set ; } private string LastName { get ; set ; } protected string Email { get ; set ; } public int Age { get ; set ; } virtual public void showName() { Console .WriteLine...
Posted: Feb 13 2010, 11:13 PM by cabhilash | with no comments
Filed under: ,
DataTable to Dictionary using LINQ
Sometimes we have to create generic dictionary from the values in datatable. Usually we will loop through all the rows in the datatable and add the relevant keys to dictionary object for ( int _iExRowCnt = 0; _iExRowCnt < dsReturn.Tables[0].Rows.Count;...
Posted: Dec 28 2009, 02:35 PM by cabhilash | with 4 comment(s)
Filed under: , ,
Anonymous types for dummies
Anonymous types are used to define strong types without defining the type. Anonymous types are strongly typed and checked at compile time. It provides a convenient way to encapsulate a set of read-only properties into a single object without having to...
LINQ for dummies - an overview
Why do we need LINQ? Most of us would have wrote code to access data from different data sources a database, in memory objects , XML files or from other formats. We have different guidelines, architectures and methods to process and retrieve these data...
Posted: Dec 26 2009, 08:50 PM by cabhilash | with 1 comment(s)
Filed under: , ,
Difference between a constant and readonly variables/fields : (constant vs readonly)
Most of us would have encountered these questions What is the difference between constant and readonly fields? When to use constant and when to use readonly fields? What is the advantage/disadvantage of each? Constants In C# you can declare a constant...
Posted: Dec 26 2009, 08:32 PM by cabhilash | with no comments
Filed under: , ,
.NET Framework V2.0 Obsolete API List
With the release of .Net framework 3.0 & 3.5 a lot API in .Net 2.0 has become obsolete. I found two excellent links in MSDN which gives a comphrensive list of all the obsolete API's of .Net 2.0 The Obsoleted Types count is the number of obsoleted...
Posted: Jan 25 2008, 08:18 AM by cabhilash | with no comments
Filed under:
More Posts