Struct InPlaceComputationWrapper<TIn1, TIn2>
- Namespace
- NMF.Transformations.Linq
- Assembly
- NMF.Transformations.dll
Wraps computations from the type TIn to the type TOut
public struct InPlaceComputationWrapper<TIn1, TIn2> : IEquatable<InPlaceComputationWrapper<TIn1, TIn2>> where TIn1 : class where TIn2 : class
Type Parameters
TIn1
The first input type for the wrapped computation
TIn2
The second input type for the wrapped computation
- Implements
-
IEquatable<InPlaceComputationWrapper<TIn1, TIn2>>
- Inherited Members
Constructors
InPlaceComputationWrapper(Computation)
Wraps the given computation into a typed wrapping structure
public InPlaceComputationWrapper(Computation inner)
Parameters
inner
ComputationThe computation that is to be wrapped
Properties
Computation
Gets the underlying computation
public Computation Computation { get; }
Property Value
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
Methods
Equals(InPlaceComputationWrapper<TIn1, TIn2>)
Gets a value indicating whether the current transformation computation wrapper and the provided instance should be treated as equal
public bool Equals(InPlaceComputationWrapper<TIn1, TIn2> other)
Parameters
other
InPlaceComputationWrapper<TIn1, TIn2>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
objectThe 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 ==(InPlaceComputationWrapper<TIn1, TIn2>, InPlaceComputationWrapper<TIn1, TIn2>)
Gets a value indicating whether the two instances of the transformationwrapper should be as equal
public static bool operator ==(InPlaceComputationWrapper<TIn1, TIn2> left, InPlaceComputationWrapper<TIn1, TIn2> right)
Parameters
left
InPlaceComputationWrapper<TIn1, TIn2>The first computation wrapper
right
InPlaceComputationWrapper<TIn1, TIn2>The second computation wrapper
Returns
- bool
True, if both wrappers represent the same computation, otherwise false
operator !=(InPlaceComputationWrapper<TIn1, TIn2>, InPlaceComputationWrapper<TIn1, TIn2>)
Gets a value indicating whether the two instances of the transformationwrapper should be as not equal
public static bool operator !=(InPlaceComputationWrapper<TIn1, TIn2> left, InPlaceComputationWrapper<TIn1, TIn2> right)
Parameters
left
InPlaceComputationWrapper<TIn1, TIn2>The first computation wrapper
right
InPlaceComputationWrapper<TIn1, TIn2>The second computation wrapper
Returns
- bool
False, if both wrappers represent the same computation, otherwise true