» C#: Determining whether a class implements certain interface


«
»

ASP.NET, Programmeren, technologie

C#: Determining whether a class implements certain interface

09.18.08 rencontre conversation anglais | 3 Comments

http://www.banmark.fi/?aftepatius=ligar-mujeres-online&934=32 typeof(IMyInterface).IsAssignableFrom(myClassInstance.GetType());
typeof(IMyInterface).IsAssignableFrom(typeof(MyClass));

see url dating website lawsuit Type.IsAssignableFrom()

Return Value
Type: System.Boolean

true if c and the current Type represent the same type, or if the current Type is in the inheritance hierarchy of c, or if the current Type is an interface that c implements, or if c is a generic type parameter and the current Type represents one of the constraints of c. false if none of these conditions are true, or if c is a null reference.

circle’s Notes: C#: Determining whether a class implements certain interface


3 Comments

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

http://peopletrans.com.au/bioddf/vuowe/603 Be nice. Keep it clean. Stay on topic. No spam.

Tastylia for sale'A=0 You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

:

:


«
»
43 queries. 0,303 seconds.