Struct DelegatingSupplier<T1, T2, TResult>
Assembly: DotNext.dll
Syntax
public readonly struct DelegatingSupplier<T1, T2, TResult> : ISupplier<T1, T2, TResult>, IFunctional, IEquatable<DelegatingSupplier<T1, T2, TResult>> where T1 : allows ref struct where T2 : allows ref struct where TResult : allows ref struct
Type Parameters
| Name |
Description |
| T1 |
The type of the first argument.
|
| T2 |
The type of the second argument.
|
| TResult |
The type of the result.
|
Constructors
View Source
DelegatingSupplier(Func<T1, T2, TResult>)
Wraps the delegate instance.
Declaration
public DelegatingSupplier(Func<T1, T2, TResult> func)
Parameters
| Type |
Name |
Description |
| Func<T1, T2, TResult> |
func |
The delegate instance.
|
Exceptions
Properties
View Source
IsEmpty
Gets a value indicating that the underlying delegate is null.
Declaration
public bool IsEmpty { get; }
Property Value
Methods
View Source
Equals(DelegatingSupplier<T1, T2, TResult>)
Declaration
public bool Equals(DelegatingSupplier<T1, T2, TResult> other)
Parameters
Returns
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
ToString()
Declaration
public override string? ToString()
Returns
Overrides
Operators
View Source
operator ==(DelegatingSupplier<T1, T2, TResult>, DelegatingSupplier<T1, T2, TResult>)
Declaration
public static bool operator ==(DelegatingSupplier<T1, T2, TResult> left, DelegatingSupplier<T1, T2, TResult> right)
Parameters
Returns
View Source
implicit operator DelegatingSupplier<T1, T2, TResult>(Func<T1, T2, TResult>)
Wraps the delegate instance.
Declaration
public static implicit operator DelegatingSupplier<T1, T2, TResult>(Func<T1, T2, TResult> func)
Parameters
| Type |
Name |
Description |
| Func<T1, T2, TResult> |
func |
The delegate instance.
|
Returns
| Type |
Description |
| DelegatingSupplier<T1, T2, TResult> |
The supplier represented by the delegate.
|
Exceptions
View Source
operator !=(DelegatingSupplier<T1, T2, TResult>, DelegatingSupplier<T1, T2, TResult>)
Declaration
public static bool operator !=(DelegatingSupplier<T1, T2, TResult> left, DelegatingSupplier<T1, T2, TResult> right)
Parameters
Returns
Implements
Extension Methods