Hi,
Im using reflection and I need to make a new object of type Sytem.Type
ive used ConstructorInfo to make the other
types such as classes ok, and I can handle the primitive types
by testing for Int32 etc, but I dont know what the possible struct will
be before hand, the ConstructorInfo fails to find one for any struct.
is there a way ? ... thers got to be a way ...
for the case where I read a a struct binarily from a file
I can use PtrToStructure,
however I now have an awkward structure wich has an object reference.
it falls over if I try it with this.
but I cant find out how to make a new struct so I can read the fields
individualy
also I have imported structures from other language,
(unreal script) these have base structs wich obvoulsy dont exist in c#
so I have to handle them somehow.
but is there a general way of storing base classes,
do they come first as layed out in memory ?
as I have to read in a struct wich has a base class.
~~~~~~
also on a diferent note in the object browser
it would be nice to know all types of System.Exception for example
is there a way to find what types have that as a base class?
or even what functions return a particular type ?
ive looked a bit but cant find any helpfull search terms.
Colin =^.^=