You could make your AddEntries
generic and change it to this
void AddEntries<T>(List<T> test) where T : Foo
{
//your logic
}
Have a look at Constraints on Type Parameters for further information.
You could make your AddEntries
generic and change it to this
void AddEntries<T>(List<T> test) where T : Foo
{
//your logic
}
Have a look at Constraints on Type Parameters for further information.