ConversionExtensions.To<T>

Extension Method in ConversionExtensions

Declaration

public static T To<T>(this Color color)
    where T : struct, IComponentModel

Description

Converts the color to a specified component model.

Type Parameters

TThe type of component model to convert to.

Parameters

colorThe color to convert.

Returns

TThe converted component model.

Overload

Declaration

public static T To<T>(this IComponentModel model)
    where T : struct, IComponentModel

Description

Converts the component model to another specified component model.

Type Parameters

TThe type of component model to convert to.

Parameters

modelThe component model to convert.

Returns

TThe converted component model.