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