Class BaseObject
Base class with properties and methods common to all Alternet.UI objects.
public class BaseObject : IBaseObject
- Inheritance
-
BaseObject
- Implements
- Derived
Methods
- CheckSTARequirement()
Checks current thread on STA.
- 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.
- Log(object?)
Same as Log(object?, LogItemKind).
- 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.
- Throw(Exception)
Throws exception.
- WrapException(Exception)
Wraps exception for the debug purposes.