Struct TransformationComputationWrapper<TIn, TOut>
Wraps computations from the type TIn to the type TOut
Implements
Inherited Members
Namespace: NMF.Transformations.Linq
Assembly: NMF.Transformations.dll
Syntax
public struct TransformationComputationWrapper<TIn, TOut> : IEquatable<TransformationComputationWrapper<TIn, TOut>> where TIn : class where TOut : class
Type Parameters
Name | Description |
---|---|
TIn | The input type for the wrapped computation |
TOut | The output type for the wrapped computations |
Constructors
| Edit this page View SourceTransformationComputationWrapper(Computation)
Wraps the given computation into a typed wrapping structure
Declaration
public TransformationComputationWrapper(Computation inner)
Parameters
Type | Name | Description |
---|---|---|
Computation | inner | The computation that is to be wrapped |
Properties
| Edit this page View SourceComputation
Gets the underlying computation
Declaration
public Computation Computation { get; }
Property Value
Type | Description |
---|---|
Computation |
Input
Gets the input of the represented computation
Declaration
public TIn Input { get; }
Property Value
Type | Description |
---|---|
TIn |
Output
Gets the output of the represented computation
Declaration
public TOut Output { get; }
Property Value
Type | Description |
---|---|
TOut |
Methods
| Edit this page View SourceEquals(TransformationComputationWrapper<TIn, TOut>)
Gets a value indicating whether the current transformation computation wrapper and the provided instance should be treated as equal
Declaration
public bool Equals(TransformationComputationWrapper<TIn, TOut> other)
Parameters
Type | Name | Description |
---|---|---|
TransformationComputationWrapper<TIn, TOut> | other | The other instance |
Returns
Type | Description |
---|---|
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
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The other instance |
Returns
Type | Description |
---|---|
bool | True, if the current object represents the same value as the given parameter, otherwise false |
Overrides
| Edit this page View SourceGetHashCode()
Gets a hash code representation of the current value
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code representation of the value represented by the current instance |
Overrides
Operators
| Edit this page View Sourceoperator ==(TransformationComputationWrapper<TIn, TOut>, TransformationComputationWrapper<TIn, TOut>)
Gets a value indicating whether the two instances of the transformationwrapper should be as equal
Declaration
public static bool operator ==(TransformationComputationWrapper<TIn, TOut> left, TransformationComputationWrapper<TIn, TOut> right)
Parameters
Type | Name | Description |
---|---|---|
TransformationComputationWrapper<TIn, TOut> | left | The first computation wrapper |
TransformationComputationWrapper<TIn, TOut> | right | The second computation wrapper |
Returns
Type | Description |
---|---|
bool | True, if both wrappers represent the same computation, otherwise false |
operator !=(TransformationComputationWrapper<TIn, TOut>, TransformationComputationWrapper<TIn, TOut>)
Gets a value indicating whether the two instances of the transformationwrapper should be as not equal
Declaration
public static bool operator !=(TransformationComputationWrapper<TIn, TOut> left, TransformationComputationWrapper<TIn, TOut> right)
Parameters
Type | Name | Description |
---|---|---|
TransformationComputationWrapper<TIn, TOut> | left | The first computation wrapper |
TransformationComputationWrapper<TIn, TOut> | right | The second computation wrapper |
Returns
Type | Description |
---|---|
bool | False, if both wrappers represent the same computation, otherwise true |