Show / Hide Table of Contents

Class INotifyCollectionChangedExtensions

Extension methods for INotifyCollectionChanged.

Inheritance
object
INotifyCollectionChangedExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.BotBrain.Extensions
Assembly: Phoenix.Plugin.BotBrain.Shared.dll
Syntax
public static class INotifyCollectionChangedExtensions

Methods

View Source

OnItemAdded(INotifyCollectionChanged, Action<object?>)

Registers an event handler for when an item is added.

Declaration
public static NotifyCollectionChangedEventHandler OnItemAdded(this INotifyCollectionChanged self, Action<object?> action)
Parameters
Type Name Description
INotifyCollectionChanged self

The object being extended.

Action<object> action

The action to apply to each item.

Returns
Type Description
NotifyCollectionChangedEventHandler

The event handler.

View Source

OnItemAdded<T2>(INotifyCollectionChanged, Action<T2>)

Creates an event handler for when an item of type T2 is added.

Declaration
public static NotifyCollectionChangedEventHandler OnItemAdded<T2>(this INotifyCollectionChanged self, Action<T2> action) where T2 : class
Parameters
Type Name Description
INotifyCollectionChanged self

The object being extended.

Action<T2> action

The action.

Returns
Type Description
NotifyCollectionChangedEventHandler

The event handler.

Type Parameters
Name Description
T2

The item type.

  • View Source
In this article
Back to top Generated by DocFX