Let's say I have this method:
public void DoSomething(object parameter)
Since it accepts object as input, arrays and lists and IEnumerable<T> can be passed to it.
I want to check the type and make sure that it's a single object, not a collection of objects.
I can check each collection possibility separately, but is there a neat better way to check it?