Table of Contents

Struct TransformationComputationWrapper<TIn1, TIn2, TOut>

Namespace
NMF.Transformations.Linq
Assembly
NMF.Transformations.dll

Wraps computations from the type TIn to the type TOut

public struct TransformationComputationWrapper<TIn1, TIn2, TOut> : IEquatable<TransformationComputationWrapper<TIn1, TIn2, TOut>> where TIn1 : class where TIn2 : class where TOut : class

Type Parameters

TIn1

The first input type for the wrapped computation

TIn2

The second input type for the wrapped computation

TOut

The output type for the wrapped computations

Implements
Inherited Members

Constructors

TransformationComputationWrapper(Computation)

Wraps the given computation into a typed wrapping structure

public TransformationComputationWrapper(Computation inner)

Parameters

inner Computation

The computation that is to be wrapped

Properties

Computation

Gets the underlying computation

public Computation Computation { get; }

Property Value

Computation

Input1

Gets the first input of the represented computation

public TIn1 Input1 { get; }

Property Value

TIn1

Input2

Gets the second input of the represented computation

public TIn2 Input2 { get; }

Property Value

TIn2

Output

Gets the output of the represented computation

public TOut Output { get; }

Property Value

TOut

Methods

Equals(TransformationComputationWrapper<TIn1, TIn2, TOut>)

Gets a value indicating whether the current transformation computation wrapper and the provided instance should be treated as equal

public bool Equals(TransformationComputationWrapper<TIn1, TIn2, TOut> other)

Parameters

other TransformationComputationWrapper<TIn1, TIn2, TOut>

The other instance

Returns

bool

True, if the current object represents the same value as the given parameter, otherwise false

Equals(object)

Gets a value indicating whether the current transformation computation wrapper and the provided instance should be treated as equal

public override bool Equals(object obj)

Parameters

obj object

The other instance

Returns

bool

True, if the current object represents the same value as the given parameter, otherwise false

GetHashCode()

Gets a hash code representation of the current value

public override int GetHashCode()

Returns

int

A hash code representation of the value represented by the current instance

Operators

operator ==(TransformationComputationWrapper<TIn1, TIn2, TOut>, TransformationComputationWrapper<TIn1, TIn2, TOut>)

Gets a value indicating whether the two instances of the transformationwrapper should be as equal

public static bool operator ==(TransformationComputationWrapper<TIn1, TIn2, TOut> left, TransformationComputationWrapper<TIn1, TIn2, TOut> right)

Parameters

left TransformationComputationWrapper<TIn1, TIn2, TOut>

The first computation wrapper

right TransformationComputationWrapper<TIn1, TIn2, TOut>

The second computation wrapper

Returns

bool

True, if both wrappers represent the same computation, otherwise false

operator !=(TransformationComputationWrapper<TIn1, TIn2, TOut>, TransformationComputationWrapper<TIn1, TIn2, TOut>)

Gets a value indicating whether the two instances of the transformationwrapper should be as not equal

public static bool operator !=(TransformationComputationWrapper<TIn1, TIn2, TOut> left, TransformationComputationWrapper<TIn1, TIn2, TOut> right)

Parameters

left TransformationComputationWrapper<TIn1, TIn2, TOut>

The first computation wrapper

right TransformationComputationWrapper<TIn1, TIn2, TOut>

The second computation wrapper

Returns

bool

False, if both wrappers represent the same computation, otherwise true