Struct InPlaceComputationWrapper<TIn>
Wraps computations from the type TIn to the type TOut
Implements
Inherited Members
Namespace: NMF.Transformations.Linq
Assembly: NMF.Transformations.dll
Syntax
public struct InPlaceComputationWrapper<TIn> : IEquatable<InPlaceComputationWrapper<TIn>> where TIn : class
Type Parameters
Name | Description |
---|---|
TIn | The input type for the wrapped computation |
Constructors
| Edit this page View SourceInPlaceComputationWrapper(Computation)
Wraps the given computation into a typed wrapping structure
Declaration
public InPlaceComputationWrapper(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 |
Methods
| Edit this page View SourceEquals(InPlaceComputationWrapper<TIn>)
Gets a value indicating whether the current transformation computation wrapper and the provided instance should be treated as equal
Declaration
public bool Equals(InPlaceComputationWrapper<TIn> other)
Parameters
Type | Name | Description |
---|---|---|
InPlaceComputationWrapper<TIn> | 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 ==(InPlaceComputationWrapper<TIn>, InPlaceComputationWrapper<TIn>)
Gets a value indicating whether the two instances of the transformationwrapper should be as equal
Declaration
public static bool operator ==(InPlaceComputationWrapper<TIn> left, InPlaceComputationWrapper<TIn> right)
Parameters
Type | Name | Description |
---|---|---|
InPlaceComputationWrapper<TIn> | left | The first computation wrapper |
InPlaceComputationWrapper<TIn> | right | The second computation wrapper |
Returns
Type | Description |
---|---|
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
Declaration
public static bool operator !=(InPlaceComputationWrapper<TIn> left, InPlaceComputationWrapper<TIn> right)
Parameters
Type | Name | Description |
---|---|---|
InPlaceComputationWrapper<TIn> | left | The first computation wrapper |
InPlaceComputationWrapper<TIn> | right | The second computation wrapper |
Returns
Type | Description |
---|---|
bool | False, if both wrappers represent the same computation, otherwise true |