Is there a way to add a method to a class, but allow it still be inherited by the base class?
I have the following
public class ListWithRandomize<T> : List<T> {
public void Randomize() { // Randomize function}
}
I'm going to have a bunch of List objects that will need to be randomized. Is it possible to have a List object that I can just "Make" into a ListWithRandomize object? I suppose I could just make the randomize function static and have it take a List<> as a parameter, but I'd like to have it as a method of the class.. if possible.
Thanks.