Show / Hide Table of Contents

Class EventHandlerExtensions

Provides extension methods for delegates

Inheritance
System.Object
EventHandlerExtensions
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Extensions
Assembly: Sartorius.SAF.dll
Syntax
public static class EventHandlerExtensions

Methods

View Source

Raise(EventHandler, Object, EventArgs)

Raises the specified handler if it is not null.

Declaration
public static void Raise(this EventHandler handler, object sender, EventArgs e)
Parameters
Type Name Description
System.EventHandler handler

The handler.

System.Object sender

The sender.

System.EventArgs e

The System.EventArgs instance containing the event data.

View Source

Raise<T>(EventHandler<T>, Object, T)

Raises the specified handler if it is not null.

Declaration
public static void Raise<T>(this EventHandler<T> handler, object sender, T e)
Parameters
Type Name Description
System.EventHandler<T> handler

The handler.

System.Object sender

The sender.

T e

The e.

Type Parameters
Name Description
T
  • View Source
Back to top Generated by DocFX