Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between TypeOf and GetType?

Answer Posted / saurabh

TypeOf(): It is an operator, which used to find the type of known type at the time of compilation of the program. It depends on the class or type and cannot pass the object or instance of the class as a parameter to the TypeOf() operator.
GetType(): This is the method, using this method we can obtain the type of the object or the type of instance of the class. To call this method we need an object or an instance of a class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between array and collection?

1092


Why do we need singleton pattern in c#?

964


Which sorting algorithm is best?

1003


To whom a method is accesssed if it is marked as protected internal ?

1088


Is c# slower than java?

890


Can we inherit static class in c#?

992


Is vs as c#?

908


Is string nullable c#?

1006


Where do I put dll files?

1012


What is difference between float and decimal?

974


What is delegate in c#?

961


What do you mean by “finalize” and “finally” methods in c#?

912


What is the solution if you need to manipulate sets of items?

877


How many types of collections are there in c#?

896


Is overriding of a function possible in the same class?

953