Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Models.ObjectSupport Class

Implements Reflection for YetaWF.

Merges language specific data collected from various attributes (Description, Caption, etc.), merges language localization resources and caches all data.

This is the only mechanism that should be used for type reflection. There is some legacy code and pre-startup code that uses .NET reflection, but this should be minimal.

Namespace: YetaWF.Core.Models
Assembly: YetaWF.Core

Inheritance

Syntax

public static class ObjectSupport;

Constructors

This class cannot be instantiated.

Methods

PublicStaticCopyDataCopies properties from one object to another.
PublicStaticCopyDataFromOriginal(not specified)
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
PublicStaticEvaluateModelChangesCompare old and new objects and determine page reload/site
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicStaticGetClassDataRetrieve class information for a given Type.
PublicStaticGetEnumDataRetrieve enumeration information for a given Type.
PublicStaticGetEnumDisplayInfoRetrieve caption/description for an enum value, derived from EnumDescription attribute.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicStaticGetPropertiesRetrieve PropertyInfo for all properties.
PublicStaticGetPropertyRetrieve PropertyInfo used for reflection for one property.
PublicStaticGetPropertyDataRetrieve property information for a given Type.
PublicStaticGetPropertyValueRetrieve a property value.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicStaticHandlePropertiesAsyncRetrieve the async method named asyncName and put the return value into the property named syncName for each item in the provided list.
PublicStaticHandlePropertyAsyncRetrieve the async method named asyncName and put the return value into the property named syncName.
PublicStaticInvalidateAllRemoves all cached data.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticModelChangesGet list of changed properties with their disposition.
PublicStaticObjectCompareGet list of changed properties.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.
PublicStaticTranslateObject(not specified)
PublicStaticTryGetPropertyRetrieve PropertyInfo used for reflection for one property.
PublicStaticTryGetPropertyDataRetrieve information for one property.
PublicStaticTryGetPropertyValueRetrieve a property value.

Enums

ProtectedModelDisposition(not specified)

See Also YetaWF.Core Overview