Class CollectionOps.ConvertType<SourceType, ReturnType>
Type converter delegate, used to convert an object of one type to another
Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
public sealed class ConvertType<SourceType, ReturnType> : MulticastDelegate
Type Parameters
Name | Description |
---|---|
SourceType | Source type |
ReturnType | Return (target) type |
Constructors
ConvertType(Object, IntPtr)
Type converter delegate, used to convert an object of one type to another
Declaration
public ConvertType(object object, IntPtr method)
Parameters
Type | Name | Description |
---|---|---|
Object | object | |
IntPtr | method |
Methods
BeginInvoke(SourceType, AsyncCallback, Object)
Type converter delegate, used to convert an object of one type to another
Declaration
public virtual IAsyncResult BeginInvoke(SourceType s, AsyncCallback callback, object object)
Parameters
Type | Name | Description |
---|---|---|
SourceType | s | |
AsyncCallback | callback | |
Object | object |
Returns
Type | Description |
---|---|
IAsyncResult |
EndInvoke(IAsyncResult)
Type converter delegate, used to convert an object of one type to another
Declaration
public virtual ReturnType EndInvoke(IAsyncResult result)
Parameters
Type | Name | Description |
---|---|---|
IAsyncResult | result |
Returns
Type | Description |
---|---|
ReturnType |
Invoke(SourceType)
Type converter delegate, used to convert an object of one type to another
Declaration
public virtual ReturnType Invoke(SourceType s)
Parameters
Type | Name | Description |
---|---|---|
SourceType | s |
Returns
Type | Description |
---|---|
ReturnType |
Extension Methods
EnumUtil.MapEnums<From, To>(From)