public void Add(Rock rock) { _myCounter.Add(rock); switch (rock.Text) { case "Igneus": _myIgneus.Add(rock as Igneus); break; case "Sedimentary": _mySedimentary.Add(rock as Sedimentary); break; case "Metamorphic": _myMetamorphic.Add(rock as Metamorphic); break; } }
public static IRock <T> Create <T>() where T : class => Rock.Create <T>(new RockOptions());