![]() | CallOnce Class |
Only methods that has no parameters and has no return value are supported.
Namespace: Cauldron.XAML.Threading
public sealed class CallOnce
The CallOnce type exposes the following members.
Name | Description | |
---|---|---|
![]() | CurrentTask |
Gets the current Task. The task can used to await for the execution of the encapsulated method.
|
![]() | IsWaiting |
Gets a value that indicates that the call is still waiting for its execution.
|
Name | Description | |
---|---|---|
![]() ![]() | Create(Action) |
Creates a new instance of CallOnce that encapsulates a method that has no parameters
and has no return value.
|
![]() ![]() | Create(Func<Task>) |
Creates a new instance of CallOnce that encapsulates a method that has no parameters
and has no return value.
|
![]() ![]() | Create(Object, Action) |
Creates a new instance of CallOnce that encapsulates a method that has no parameters
and has no return value.
|
![]() ![]() | Create(Object, Func<Task>) |
Creates a new instance of CallOnce that encapsulates a method that has no parameters
and has no return value.
|
![]() | Invoke |
Invokes the encapsulated method.
|
Name | Description | |
---|---|---|
![]() ![]() | As(Type) | Overloaded.
Converts a type using the implicit or explicit operators. If both fails it will try to
convert the value with ChangeType(Object, Type).
(Defined by ExtensionsConvertions.) |
![]() ![]() | As(Type, Type) | Overloaded.
Converts a type using the implicit or explicit operators. If both fails it will try to
convert the value with ChangeType(Object, Type).
(Defined by ExtensionsConvertions.) |
![]() ![]() | As<T>() | Overloaded.
Performs a cast between compatible reference types. If a convertion is not possible then
null is returned. As a last resort it will use ChangeType(Object, Type).
(Defined by ExtensionsConvertions.)Tries to use the implicit and explicit operators if exists when convertion with 'as' returns null. |
![]() ![]() | CreateType<T> |
Creates a new Type that implements the properties of an interface defined by T
and copies all value of anon to the new object.
(Defined by ExtensionsInterception.) |
![]() | GetPropertyNonPublicValue<T> |
Searches for the specified property, using the specified binding constraints and returns
its value.
(Defined by ExtensionsReflection.)Default BindingFlags are Instance and NonPublic |
![]() | GetPropertyValue(String, BindingFlags) | Overloaded.
Searches for the specified property, using the specified binding constraints and returns
its value.
(Defined by ExtensionsReflection.) |
![]() | GetPropertyValue<T>(String) | Overloaded.
Searches for the specified property, using the specified binding constraints and returns
its value.
(Defined by ExtensionsReflection.)Default BindingFlags are Instance and Public |
![]() | GetPropertyValue<T>(String, BindingFlags) | Overloaded.
Searches for the specified property, using the specified binding constraints and returns
its value.
(Defined by ExtensionsReflection.) |
![]() | MapTo<T> |
Maps all properties and fields of an instance to another instance. The Clone() method is used to copy an instance if exist.
(Defined by ExtensionsCloning.)Mapping fails on jagged and multidimensional array. Classes without parameterless constructor will stay null. |
![]() | ToLong | (Defined by ExtensionsConvertions.) |
![]() | ToStringEx(String) | Overloaded.
Converts the value of this instance to its equivalent string representation, using the
specified format.
(Defined by Extensions.)The following custom formatter are already added: ByteSizeFormatter, MetricUnitFormatter |
![]() | ToStringEx(String, CultureInfo) | Overloaded.
Converts the value of this instance to its equivalent string representation, using the
specified format.
(Defined by Extensions.)The following custom formatter are already added: ByteSizeFormatter, MetricUnitFormatter |
![]() | TryDispose |
Tries to performs application-defined tasks associated with freeing, releasing, or
resetting unmanaged resources.
(Defined by Extensions.)This will dispose an object if it implements the IDisposable interface. |