Class UnaryOperator<TOperand, TResult>
Represents unary operator applicable to type TOperand
.
Implements
System.IConvertible<Operator<TOperand, TResult>>
Inherited Members
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public sealed class UnaryOperator<TOperand, TResult> : Operator<Operator<TOperand, TResult>>, IOperator<Operator<TOperand, TResult>>, IMember<MemberInfo, Operator<TOperand, TResult>>, IMember<MemberInfo>, ICustomAttributeProvider, IConvertible<Operator<TOperand, TResult>>
Type Parameters
Name | Description |
---|---|
TOperand | Target type. |
TResult | 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(TOperand)
Invokes unary operator.
Declaration
public TResult Invoke(in TOperand operand)
Parameters
Type | Name | Description |
---|---|---|
TOperand | operand | An operand. |
Returns
Type | Description |
---|---|
TResult | Result of unary operator. |
Implements
System.IConvertible<>