G
George Durzi
I want to convert a dataset to type object so I can pass it to a generalized
function which accepts an object and adds it to the cache.
If I pass it in like:
Convert.ChangeType(MyDataSet, typeof(object))
or
(object)Convert.ChangeType(MyDataSet, typeof(object))
I get an InvalidCastException, with a message of Object must implement
IConvertible.
System.Data.DataSet doesn't implement IConvertible. Is there another way to
cast the DataSet as an object?
function which accepts an object and adds it to the cache.
If I pass it in like:
Convert.ChangeType(MyDataSet, typeof(object))
or
(object)Convert.ChangeType(MyDataSet, typeof(object))
I get an InvalidCastException, with a message of Object must implement
IConvertible.
System.Data.DataSet doesn't implement IConvertible. Is there another way to
cast the DataSet as an object?