Table of Contents

Class CancellableEventArgs<T>

Namespace
Icy.Data
Assembly
IcyUI.dll

A class for any event args that can be cancelled.

public class CancellableEventArgs<T> : CancelEventArgs, IDataEventArgs<T>, IDataEventArgs

Type Parameters

T

Type fo data stored in the event args.

Inheritance
CancellableEventArgs<T>
Implements
Derived
Inherited Members
Extension Methods

Constructors

CancellableEventArgs()

Initializes a new instance of the CancellableEventArgs<T> class.

public CancellableEventArgs()

CancellableEventArgs(T)

Initializes a new instance of the CancellableEventArgs<T> class.

public CancellableEventArgs(T data)

Parameters

data T

Data to keep.

Properties

Data

Gets data to store.

public T Data { get; }

Property Value

T

Operators

explicit operator T(CancellableEventArgs<T>)

Explicitly gets the data of the given CancellableEventArgs<T> instance.

public static explicit operator T(CancellableEventArgs<T> e)

Parameters

e CancellableEventArgs<T>

Event arguments to get data from.

Returns

T

implicit operator CancellableEventArgs<T>(T)

Implicitly converts data to the CancellableEventArgs<T> type.

public static implicit operator CancellableEventArgs<T>(T data)

Parameters

data T

Data to store.

Returns

CancellableEventArgs<T>