I would like to include a Copy method on a runtime built type that takes it's own type as a parameter - i'm sure i'm missing something obvious but i don't see how to do this
TypeBuilder recordTypeBuilder =
moduleBuilder.DefineType("_" + tableSpec.Name + "Record", TypeAttributes.Sealed,);
recordTypeBuilder.DefineMethod( "CopyFrom", MethodAttributes.Public, null, new[] { typeof( ??? ) });
the ???'s are where i have a problem. i can't construct the type yet, as i haven't finished creating it!
any ideas?
regards,