anyone know of a way to do typecasting in vb.net?
in c# in c++ it's simple...if i want to convert an object i made called a "ParentDataType" to another i made called a "SpecializedDataType", i would just go
ParentDataType x = new ParentDataType();
SpecializedDataType y = (SpecializedDataType)x;
is there an easy way to do this using the System.Convert() class? the only thing i see is System.Convert.ChangeType() which expects a System.TypeCode parameter (which i don't think is the same thing that System.Type.GetType("SpecializedDataType"
thanks
mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu
in c# in c++ it's simple...if i want to convert an object i made called a "ParentDataType" to another i made called a "SpecializedDataType", i would just go
ParentDataType x = new ParentDataType();
SpecializedDataType y = (SpecializedDataType)x;
is there an easy way to do this using the System.Convert() class? the only thing i see is System.Convert.ChangeType() which expects a System.TypeCode parameter (which i don't think is the same thing that System.Type.GetType("SpecializedDataType"
thanks
mike griffith
----------------------------
mgriffith@lauren.com
mdg12@po.cwru.edu