Table of Contents

Class BaseObject

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Base class with properties and methods common to all Alternet.UI objects.

public class BaseObject : IBaseObject
Inheritance
BaseObject
Implements
Derived

Fields

StaticOptions

Gets or sets static options which are common to all descendants of BaseObject.

Properties

DisposingOrDisposed

Gets whether this object is disposing or disposed. Default implementation returns False. Inherit from DisposableObject or override this property in order to have valid result.

Immutable

Gets whether object is immutable (properties can not be changed).

InvokeRequired

Gets a value indicating whether the caller must call an invoke method when making method calls to the UI objects because the caller is not on the UI thread.

UseNamesInToString

Gets or sets whether ToString() should not include property names in result.

Methods

BeginInvoke(Delegate?, object?[]?)

Executes a delegate asynchronously on the UI thread.

CheckSTARequirement()

Checks current thread on STA.

EndInvoke(IAsyncResult)

Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed.

InsideTryCatch(Action?)

Calls the specified action inside try catch block.

InsideTryCatchIfDebug(Action?)

Calls the specified action inside try catch block when DEBUG is specified; otherwise simply calls the action without try catch block.

InsideTryCatch<T>(Func<T>)

Calls the specified function inside try catch block.

Invoke(Delegate?, object?[]?)

Executes the specified delegate, on the UI thread, with the specified list of arguments.

IsDisposingOrDisposed(object?)

Gets whether the specified object is disposing or disposed.

Log(object?)

Same as Log(object?, LogItemKind).

Nop()

Does nothing.

Nop(Exception?)

Does nothing.

NotImplemented()

Throws NotImplementedException exception.

NotImplemented<T>()

Throws NotImplementedException exception.

Required()

Marks object as required.

SafeDisposeObject<T>(ref T?)

Safely disposes specified object which supports IDisposableObject interface.

SafeDispose<T>(ref T?)

Safely disposes specified object which supports IDisposable interface.

TryCatchSilent(Action?)

Calls the specified action inside try catch block silently.

WrapException(Exception)

Wraps exception for the debug purposes.