Hello.
I have a product class in C# that inherits from another product class
using ExternalAssemb.ProductA;
public class MyProduct : ProductA
{
//....
}
I'm trying to do an explicit cast from ProductA that is in a DLL I reference but it's telling me it's unable to cast
MyProduct myProduct = (MyProduct)productAobject;
Result:: System.InvalidCastException: Unable to cast object of type 'ExternalAssemb.ProductA' to type 'MyAssembly.MyProduct'.
What am I doing wrong?