C# Класс Open.Core.Helper

Static index of helpers.
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateId ( ) : string

Creates a unique identifier.

Dispose ( object obj ) : void

Disposes of the object (if it's not null and is an IDisposable).

Invoke ( System.Action action ) : void

Invokes the given action if it's not Null/Undefined.

ListenPropertyChanged ( object model, PropertyChangedHandler handler ) : void

Casts the given object to an 'INotifyPropertyChanged' and if it is observable wires up the given event handler to the 'PropertyChanged' event.

UnlistenPropertyChanged ( object model, PropertyChangedHandler handler ) : void

Casts the given object to an 'INotifyPropertyChanged' and if it is observable un-wires the given event handler from the 'PropertyChanged' event.

Описание методов

CreateId() публичный статический Метод

Creates a unique identifier.
public static CreateId ( ) : string
Результат string

Dispose() публичный статический Метод

Disposes of the object (if it's not null and is an IDisposable).
public static Dispose ( object obj ) : void
obj object The object to dispose of.
Результат void

Invoke() публичный статический Метод

Invokes the given action if it's not Null/Undefined.
public static Invoke ( System.Action action ) : void
action System.Action The action to invoke.
Результат void

ListenPropertyChanged() публичный статический Метод

Casts the given object to an 'INotifyPropertyChanged' and if it is observable wires up the given event handler to the 'PropertyChanged' event.
public static ListenPropertyChanged ( object model, PropertyChangedHandler handler ) : void
model object The model to wire up.
handler PropertyChangedHandler The handler to attach.
Результат void

UnlistenPropertyChanged() публичный статический Метод

Casts the given object to an 'INotifyPropertyChanged' and if it is observable un-wires the given event handler from the 'PropertyChanged' event.
public static UnlistenPropertyChanged ( object model, PropertyChangedHandler handler ) : void
model object The model to un-wire.
handler PropertyChangedHandler The handler to remove.
Результат void