R
Rob Reagan
Can someone explain to me why I must explicitly cast UP a
class heiarchy when using option explicit? For instance,
I have a typed dataset (which is derived from the DataSet
class) and I'm passing this typed dataset to a function
that requires a system.data.dataset as an argument. The
compiler complains about a type mismatch and won't let me
compile until I pass the typed dataset as
CType(myTypedDataSet, DataSet). I find this very bizarre.
Maybe I'm really missing something. Any explanation would
be appreciated.
Rob Reagan
class heiarchy when using option explicit? For instance,
I have a typed dataset (which is derived from the DataSet
class) and I'm passing this typed dataset to a function
that requires a system.data.dataset as an argument. The
compiler complains about a type mismatch and won't let me
compile until I pass the typed dataset as
CType(myTypedDataSet, DataSet). I find this very bizarre.
Maybe I'm really missing something. Any explanation would
be appreciated.
Rob Reagan