Click or drag to resize
BaseExtensionsToArrayTFrom, TTo Method

Note: This API is now obsolete.

Converts the given collection to a list of values

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 9.0.0
Syntax
C#
[ObsoleteAttribute("This method is obsolete. Use LINQ Select and ToArray methods.")]
public static TTo[] ToArray<TFrom, TTo>(
	this TFrom[] values,
	Func<TFrom, TTo> transform
)

Parameters

values
Type: TFrom
Values
transform
Type: SystemFuncTFrom, TTo
Transformation of the original object to the result

Type Parameters

TFrom
TTo

Return Value

Type: TTo

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also