By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,338 Members | 1,346 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,338 IT Pros & Developers. It's quick & easy.

Bug in Reflection in .net 2.0

P: n/a
Hi,

I have the following code:

using System;
using System.Collections.Generic;
using System.Text;

namespace GenericParamsCodeGeneration
{
public class MyGenericClass<T,U>
{
public void NestedGParamMethod(NestedGenericClass<IList<int>>
newParentHierarchy)
{
}

public class NestedGenericClass<T>
{

}
}
}

when obtaining infomation about NestedGParamMethod's parameter through
reflection I get the following results :

parameterInfo.ParameterType.Name -> "NestedGenericClass`1"
parameterInfo.ParameterType.FullName -> null

Looks to me that it is a bug or isn't it ?

Can anybody explain that to me ?

Konrad

May 11 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Konrad Kaczanowski" <ko****************@gmail.com> wrote:
parameterInfo.ParameterType.Name -> "NestedGenericClass`1"
parameterInfo.ParameterType.FullName -> null

Looks to me that it is a bug or isn't it ?


No. Check out:

http://blogs.msdn.com/kathykam/archi...26/582622.aspx

and

http://blogs.msdn.com/haibo_luo/arch...17/534480.aspx

-- Barry
May 11 '06 #2

P: n/a
Thanks Barry - that explains my problem pretty well.

May 12 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.