M
muriwai
Hi, I need an equivalent of ZeroMemory in c# 2.0. The below does not compile
because it cannot convert 0 to T. I plan to use the method for numeric Ts
only.
public static void Zero<T>( T[] o, int offset, int length )
{
for( int i = 0; i < length; i++ )
{
o[ offset + i ] = 0;
}
}
Thanks!
because it cannot convert 0 to T. I plan to use the method for numeric Ts
only.
public static void Zero<T>( T[] o, int offset, int length )
{
for( int i = 0; i < length; i++ )
{
o[ offset + i ] = 0;
}
}
Thanks!