Show / Hide Table of Contents

Class ActionEx

Provides an additional set of static members for System.Action.
Inheritance
System.Object
ActionEx
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Annex.Delegates
Assembly: Annex.dll
Syntax
[PublicAPI]
public static class ActionEx

Properties

| Improve this Doc View Source

Empty

An empty System.Action (i.e. NOP or No Operation).
Declaration
[NotNull]
public static Action Empty { get; }
Property Value
Type Description
System.Action
Remarks
This method is named 'Empty' instead of 'NoOp' to match other .NET representations of NOP values, such as: System.Linq.Expressions.Expression.Empty, System.Linq.Enumerable.Empty``1, and Observable.Empty{T}.
Examples
public void SomeMethodWithAForcedCallback(Action callback) { ... }

SomeMethodWithAForcedCallback(ActionEx.Empty);
See Also
Wikipedia: NOP
  • Improve this Doc
  • View Source
Back to top Copyright © George Taylor Buchanan
Generated by DocFX