Does casting an IList<T> to an array of type T[] cause enumeration?
- by Brian Triplett
I have a method that looks like:
T[] field;
public Method(IList<T> argument)
{
this.field = (T[])argument;
}
When the body of the method is executed does enumeration take place during the cast? Would that change if the underlying type was different?