Skip to main content

Posts

Showing posts from March 7, 2017

Generic method overloading

Introduction I would like to introduce generic method overloading. It would be good for you to already understand generics in C# but if not then please visit the following link. Basics of Generic Classes in C# First we will understand simple overloading then move towards generic overloading. Steps and code Add the following class to the project: 1.   public   class  SimpleClass   2.   {   3.         public   void  GetData( int  x)   4.       {   5.           Console.WriteLine( "INSIDE GetData and Datetype:"  + x.GetType().Name);   6.       }   7.      8.         public   void  GetData( string  xStr)   9.       {   10.    ...

Contact Form

Name

Email *

Message *