0

Hey,

following Problem:

I have two classes Measurement and its subclass DC_Measurement.

Measurement has a method called:

public virtual SetPoint[,] createSetPointArray()

DC_Measurement:

public override DCSetPoint[,] createSetPointArray()

DCSetPoint is also a subclass of SetPoint.

I read that this is possible. Now I use in my mainWindow following code which contains an error:

DCSetPoint[,] calArray = selectedMeasurement.createSetPointArray();

Error: Cannot implicitly convert type 'paMeasure.SetPoint[*,*]' to 'paMeasure.DCSetPoint[*,*]'. An explicit conversion exists (are you missing a cast?)

I don't know what to do.
Thanks for help.

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by Tortura
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.