Class UnaryOperator<T, R>
Represents unary operator applicable to type T
.
Inherited Members
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public sealed class UnaryOperator<T, R> : Operator<Operator<T, R>>, IOperator<Operator<T, R>>
Type Parameters
Name | Description |
---|---|
T | Target type. |
R | Type of unary operator result. |
Properties
| Improve this Doc View SourceType
Type of operator.
Declaration
public UnaryOperator Type { get; }
Property Value
Type | Description |
---|---|
UnaryOperator |
Methods
| Improve this Doc View SourceInvoke(T)
Invokes unary operator.
Declaration
public R Invoke(in T operand)
Parameters
Type | Name | Description |
---|---|---|
T | operand | An operand. |
Returns
Type | Description |
---|---|
R | Result of unary operator. |