Doing things with objects as if they were parents
Posted
by
General Ackbar
on Stack Overflow
See other posts from Stack Overflow
or by General Ackbar
Published on 2014-06-12T21:11:55Z
Indexed on
2014/06/12
21:25 UTC
Read the original article
Hit count: 224
c#
|inheritance
Sorry that this is probably a super noob question. But the following code give me an error saying that there are invalid arguments in my call of
doStuffToLines(segments)
shouldnt I be able to do this since I have my DimensionLineSegment inherits from Lines?
private void doStuff()
{
List<DimensionLineSegment> segments = new List<DimensionLineSegment>();
doStuffToLines(segments);
}
private void doStuffToLines(List<Line> lines)
{
}
© Stack Overflow or respective owner