Home / General / Quick Tip: Identifing the interfaces that an object implements
digWin is a community news sharing site for Microsoft Techies. Share interesting news/links and rate them!

Quick Tip: Identifing the interfaces that an object implements

Have you ever wondered what type an object is?  How about what interfaces the object implements?  Using the .NET Framework and .NET Compact Framework, this information is very easy to determine.The first thing we need to know about an object is it's type.  Every object, including Object, has a method called GetType().  For a given Object (obj), I get the Type (objType).Type objType = obj.GetType();GetType naturally returns a Type object.  The Type object is, to me, one of the most useful objects in .NET.  From the Type object,





Microsoft news, tips and tricks search

Comments


Post voted by 1 digWinners


Featured Links

User

Login | Register




Forgot Password?

Sponsor

Anti spam filter for mail servers
Anti spam, anti phishing and email management software for Exchange/SMTP/Lotus. Download a FREE trial!

Featured

Download Free Exchange Ebook

Categories

Upcoming NEW

Recent comments

Related Sites