I'm fairly novice at C# and have searched on this topic here. I think I'm missing something fundamental, so apologies if this is a dumb question.
I have two objects FullAlbum and Album. FullAlbum inherits from Album. I'm trying to turn an Album object into a FullAlbum object so I can work with it. I thought this was as easy as 'Downcasting' it from Album to FullAlbum but I can't get it to work, I get a run time error that says it can't convert from one to the other.
I've already got an Album object _album which is populated when I debug. I'm then trying;
FullAlbum _fullAlbum = new FullAlbum();
_fullAlbum = _album as FullAlbum;
I'm expecting this to copy all the properties from _album to FullAlbum. Am I missing the point?