I have a generic method that I want to pass a variable to, and if that variable is IEnumerable, set all its elements to its default value. This is what I have so far:

```
public static T set_to_default<T>(T the_obj)
{
    var the_enumerable = the_obj as IEnumerable;
    if (the_enumerable != null)
    {
        foreach (var element in the_enumerable)
        {
            // I don't know what to put here
            // I want to set each element to its default value: default(T)
        }
        return the_obj;
    }
    else
    {
        return default(T);
    }
}

```

What do I put inside the *foreach* loop?