Show / Hide Table of Contents

Delegate StructurePatchingHelper.TypeAction

Action to apply for a given type, when a Property of that type is encountered

Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
public delegate object StructurePatchingHelper.TypeAction(object value, Attribute[] decorations, string propertyName)
Parameters
Type Name Description
object value

Current value of the Property (or array/dictionary element)

Attribute[] decorations

Attributes on the Property

string propertyName

Name of the Property - mostly useful for debugging

Returns
Type Description
object

New value for this element, will replace the value currently there

Constructors

TypeAction(object, IntPtr)

Action to apply for a given type, when a Property of that type is encountered

Declaration
public TypeAction(object @object, IntPtr method)
Parameters
Type Name Description
object object
IntPtr method

Methods

BeginInvoke(object, Attribute[], string, AsyncCallback, object)

Action to apply for a given type, when a Property of that type is encountered

Declaration
public virtual IAsyncResult BeginInvoke(object value, Attribute[] decorations, string propertyName, AsyncCallback callback, object @object)
Parameters
Type Name Description
object value
Attribute[] decorations
string propertyName
AsyncCallback callback
object object
Returns
Type Description
IAsyncResult

EndInvoke(IAsyncResult)

Action to apply for a given type, when a Property of that type is encountered

Declaration
public virtual object EndInvoke(IAsyncResult result)
Parameters
Type Name Description
IAsyncResult result
Returns
Type Description
object

Invoke(object, Attribute[], string)

Action to apply for a given type, when a Property of that type is encountered

Declaration
public virtual object Invoke(object value, Attribute[] decorations, string propertyName)
Parameters
Type Name Description
object value
Attribute[] decorations
string propertyName
Returns
Type Description
object

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top