Show / Hide Table of Contents

Class UnaryOperator<T, R>

Represents unary operator applicable to type T.

Inheritance
Object
Operator<Operator<T, R>>
UnaryOperator<T, R>
Implements
IOperator<Operator<T, R>>
Inherited Members
Operator<Operator<T, R>>.Method
Operator<Operator<T, R>>.IOperator<Operator<T, R>>.Invoker
Operator<Operator<T, R>>.Type
Operator<Operator<T, R>>.Equals(Object)
Operator<Operator<T, R>>.GetHashCode()
Operator<Operator<T, R>>.ToString()
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 Source

Type

Type of operator.

Declaration
public UnaryOperator Type { get; }
Property Value
Type Description
UnaryOperator

Methods

| Improve this Doc View Source

Invoke(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.

Implements

IOperator<D>

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ExpressionBuilder.Const<T>(T)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX