ProxyExtensions Class

Extension methods for easing handling of proxies.

It provides some static convenience functions for proxies

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static class ProxyExtensions
Inheritance
Object    ProxyExtensions

Methods

Getter(IDoubleProxy, IQuantity)

From the proxy, return an FuncTResult for the specified quantity.

It returns the first quantity of that type that is offered, and null if the quantity is not offered.

Getter(IDoubleElementSetProxy, IQuantity, IElementSetDefinition)

From the proxy, return an IDoubleVectorGetter for the specified quantity.

It returns the first quantity of that type that is offered, and null if the quantity is not offered.

Getter(IDoubleReachProxy, IQuantity, Int32)

From the proxy, return an IVectorGetterT for the specified quantity.

It returns the first quantity of that type that is offered, and null if the quantity is not offered.

Getter(IDoubleTimeProxy, IQuantity, IQuantity)

From the proxy, return an FuncTResult for the specified quantity.

It returns the first quantity of that type that is offered, and null if the quantity is not offered.

Getter(IDoubleReachProxy, IQuantity, Int32, IQuantity)

From the proxy, return an IVectorGetterT for the specified quantity.

It returns the first quantity of that type that is offered, and null if the quantity is not offered.

Getters Returns a set of FuncTResult for the quantity. We can return several quantities with the same id (usually they will differ in their description). If the quantity is not offerent, an empty list is returned.
GettersFraction Returns a set of FuncT, TResult for the quantity. We can return several quantities with the same id (usually they will differ in their description). If the quantity is not offerent, an empty list is returned.
GetterUnboxed

From the proxy, return an FuncTResult for the specified quantity.

It returns the first quantity of that type that is offered, and null if the quantity is not offered.

Setter(IDoubleProxy, IQuantity)

From the proxy, return an IDoubleGetSet for the specified quantity.

It returns the first quantity of that type that is accepted, and null if the quantity is not accepted.

Setter(IDoubleElementSetProxy, IQuantity, IElementSetDefinition)

From the proxy, return an IDoubleVectorGetSet for the specified quantity.

It returns the first quantity of that type that is accepted, and null if the quantity is not accepted.

Setter(IDoubleReachProxy, IQuantity, Int32)

From the proxy, return an IDoubleVectorGetSet for the specified quantity.

It returns the first quantity of that type that is accepted, and null if the quantity is not accepted.

SetValues(IDoubleVectorSetter, Double) Set the current values, vals will be copied into current array and update that.
SetValues(IDoubleVectorSetter, Double, Boolean) Set the current values, vals will be copied into current array and update that.
Overload of SetValues(IDoubleVectorSetter, Double), which only updates the elements pointed out by mask
TimeValueGetter

From the proxy, return an FuncT, TResult for the specified quantity.

It returns the first quantity of that type that is offered, and null if the quantity is not offered.

See Also