Method Cast
Cast<TSource, TTarget>(TSource)
Declaration
public static TTarget Cast<TSource, TTarget>(TSource o)
where TSource : class where TTarget : class
Parameters
Type | Name | Description |
---|---|---|
TSource | o |
Returns
Type | Description |
---|---|
TTarget |
Type Parameters
Name | Description |
---|---|
TSource | |
TTarget |