My guess was that Class<SubClass, SubClass2> is the most common way to display a generic class. Anyway. The problem is not the [] instead of <>, but the Version, Culture, and PublicKeyToken.

typeof(MyGenericClass<MyClass, TestClass>).ToString()

result:

TestApplication.MyGenericClass`2[TestApplication.MyClass,TestApplication.TestClass]


- Morten

Nicko Cadell wrote:
Morten,

The LogManager.GetLogger(Type) method uses the Type.FullName property to
get a string that represents the type name.
In your case the output is correct.
TestApplication.MyGenericClass`1[[TestApplication.MyClass,
TestApplication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]

Reply via email to