2
2G
Hi,
I'm having some problems creating an instance of the dataset I compile in
memory and I don't know why.
I what to do this to Invoke WriteXmlSchema or GetSchemaSerializable so I
could save the xsd of my dataset.
The compiling seems to succeed since cr.Errors.HasErrors returns false;
Anyone that knows what the problem could be?
Assembly a = cr.CompiledAssembly;
Type[] mytypes = a.GetTypes();
foreach(Type t in mytypes)
{
try {
object ibaseObject = Activator.CreateInstance(t);
object[] arguments = new object [] {};
object result;
result = t.InvokeMember ("GetSchemaSerializable",
BindingFlags.Default | BindingFlags.InvokeMethod, null, ibaseObject,
arguments);
}catch(TargetInvocationException ex){
throw ex.InnerException;
}
}
thanks.
I'm having some problems creating an instance of the dataset I compile in
memory and I don't know why.
I what to do this to Invoke WriteXmlSchema or GetSchemaSerializable so I
could save the xsd of my dataset.
The compiling seems to succeed since cr.Errors.HasErrors returns false;
Anyone that knows what the problem could be?
Assembly a = cr.CompiledAssembly;
Type[] mytypes = a.GetTypes();
foreach(Type t in mytypes)
{
try {
object ibaseObject = Activator.CreateInstance(t);
object[] arguments = new object [] {};
object result;
result = t.InvokeMember ("GetSchemaSerializable",
BindingFlags.Default | BindingFlags.InvokeMethod, null, ibaseObject,
arguments);
}catch(TargetInvocationException ex){
throw ex.InnerException;
}
}
thanks.