public static EnumerableToArray ( IEnumerable collection, bool alwaysCreate ) : ArrayList | ||
collection | IEnumerable | The source collection |
alwaysCreate | bool | If true, this method will always create a new /// collection. |
return | ArrayList |
When we move to .NET 3.5, we can use LINQ and not need this method.
public static EnumerableToArray ( IEnumerable collection, bool alwaysCreate ) : ArrayList | ||
collection | IEnumerable | The source collection |
alwaysCreate | bool | If true, this method will always create a new /// collection. |
return | ArrayList |