G
Guest
I have a web service that creates several reports, rather than exposing a
method for every report I used something similar to the builder pattern, I
pass in an object that inherits from a base class that holds the parameters
for the report and the method calls a custom report builder that builds a
typed DataSet and then returns a Vanilla Dataset that is actually a reference
to a Typed DataSet. Unfortunately when I get the DataSet back and try to cast
it to its original for, I get an InvalidCastException. Is this a bug or is
this the proper behavior for DataSets? I have subclassed other objects and
used them as parameters for Web Services with out any trouble.
method for every report I used something similar to the builder pattern, I
pass in an object that inherits from a base class that holds the parameters
for the report and the method calls a custom report builder that builds a
typed DataSet and then returns a Vanilla Dataset that is actually a reference
to a Typed DataSet. Unfortunately when I get the DataSet back and try to cast
it to its original for, I get an InvalidCastException. Is this a bug or is
this the proper behavior for DataSets? I have subclassed other objects and
used them as parameters for Web Services with out any trouble.