Hello to all,
I have some doubt in my following c# program. In the following code I have create "cars" class that contains an array of (base class) Vehicles, but I unable to find elements of a given type in an array in C#. For your information I have written following code for you.
Please help me. Thank you.Code:class cars { private Vehicle[] _vehicles; public ? Get(?) { return ? } } cars fleets = new cars("fleets.def"); Trains[] trainss = fleets.Get(Trains); Plains[] plainss = fleets.Get<Plains>();
Bookmarks