Post.Cast<SourceType, TargetType> Method |
Namespace: PostSharp
Assembly: PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
public static TargetType Cast<SourceType, TargetType>( SourceType o ) where SourceType : class where TargetType : class
Parameters
- o
- Type: SourceType
Instance to be casted.
Type Parameters
- SourceType
- Source type.
- TargetType
- Target type.
Return Value
Type: TargetTypeThe object o casted as TargetType.