Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.49 KB

ObjectExtensions.md

File metadata and controls

23 lines (16 loc) · 1.49 KB

ObjectExtensions class

Extensions for all objects

public static class ObjectExtensions

Public Members

name description
static AsArray<T>(…) Returns a single object as a singleton array Note: Naming looks wrong. This method will probably be removed in a later release.
static GetCustomProperty<T>(…) WARNING: PROTOTYPE. Do not use until this notice is removed since memory impact has not been verified yet. Retrieves an "attached" property for the source object The dictionary storing data will be garbage collected once the object is not used anymore, preventing memory leaks
static GetValueFromPath(…) Recursively retrieves a value from a deep property for the given object
static SafeConvert(…) Tries to convert an object to a target type, handling nulls, DBNull and empty strings.
static SetCustomProperty<T>(…) WARNING: PROTOTYPE. Do not use until this notice is removed since memory impact has not been verified yet. Stores a custom property attached to the source object The dictionary storing data will be garbage collected once the object is not used anymore, preventing memory leaks

See Also