Re: Comparing Type variables
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Fri, 14 Mar 2008 00:21:57 -0700
On Thu, 13 Mar 2008 23:55:36 -0700, Jeronimo Bertran <jeronimo.bertran@xxxxxxxxxxxxxxxx> wrote:
[...]
return o is typeToTest; // This won't work because typeToTest is a
variable and not the actual type but I want to be able to check if o is
derived from the type supplied.
See Type.IsInstanceOf()
http://msdn2.microsoft.com/en-us/library/system.type.isinstanceoftype.aspx
Pete
.
- Follow-Ups:
- Re: Comparing Type variables
- From: Jeronimo Bertran
- Re: Comparing Type variables
- From: Jeronimo Bertran
- Re: Comparing Type variables
- References:
- Comparing Type variables
- From: Jeronimo Bertran
- Comparing Type variables
- Prev by Date: .NET custom security: still possible?
- Next by Date: Re: POP client Attachments Retireve
- Previous by thread: Comparing Type variables
- Next by thread: Re: Comparing Type variables
- Index(es):