fjgandrade / sharpkit

Automatically exported from code.google.com/p/sharpkit
0 stars 0 forks source link

Generic type definition is missing in object.GetType() #283

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
object.GetType() does not return the generic arguments of object:

List<string> somelist = new List<string>();
Type mytype = somelist.GetType();

mytype.GetGenericArguments(); // returns null
// mytype._TypeArguments == null in the Js context

Version: SharpKit 5 v5.00.6000

Additional information:
We are currently working on a generic JSON de-/serializer supporting any kinds 
of JsClr objects which we would like to contribute to the SharpKit project. 
Generic support of the GetType function is essential for recognizing the type 
of an object in the (de-)serialization process. Its implementation should not 
be very hard, so we would be very pleased if we could make use of the correct 
GetType function soon.

Please let me say at this point that we a very excited about the SharpKit 
concept and realization and that we really enjoy software development with 
SharpKit!

Original issue reported on code.google.com by theo.tig...@googlemail.com on 28 Feb 2013 at 4:33