M_CSharpx_EitherExtensions_Map__3 - adutton/commandline GitHub Wiki
Namespace: CSharpx
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0
C#
public static Either<TLeft, TResult> Map<TLeft, TRight, TResult>(
this Either<TLeft, TRight> either,
Func<TRight, TResult> func
)VB
<ExtensionAttribute>
Public Shared Function Map(Of TLeft, TRight, TResult) (
either As Either(Of TLeft, TRight),
func As Func(Of TRight, TResult)
) As Either(Of TLeft, TResult)C++
public:
[ExtensionAttribute]
generic<typename TLeft, typename TRight, typename TResult>
static Either<TLeft, TResult>^ Map(
Either<TLeft, TRight>^ either,
Func<TRight, TResult>^ func
)F#
[<ExtensionAttribute>]
static member Map :
either : Either<'TLeft, 'TRight> *
func : Func<'TRight, 'TResult> -> Either<'TLeft, 'TResult>
- either
- Type: CSharpx.Either(TLeft, TRight)
- func
- Type: System.Func(TRight, TResult)
- TLeft
- TRight
- TResult
Type: Either(TLeft, TResult)
In Visual Basic and C#, you can call this method as an instance method on any object of type Either(TLeft, TRight). 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).