Public feed #377706

Stuff

public text v1 · immutable
Raw Edit
·published 2007-03-01 23:11 UTC
rendered paste body
public class Transform<T,U> 
{
static U [] Process(T [] input)
{
    U [] output = new U[input.Length];
    
    for (int x = 0; x < input.Length; x++)
    {
        output[x] = (U) Convert.ChangeType(input[x], typeof(U));
    }

    return output;
}
}