C# 클래스 Open.Core.Helper

Static index of helpers.
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL

공개 메소드들

메소드 설명
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