Class LinkPropertyItemCache
Last update: 16.07.2025Namespace: VM.Models.Pre.Cache
Assembly: VM.Models.Pre.dll
This class serve cache for Link/Child type properties of given object or type
public static class LinkPropertyItemCache
Inheritance
object ← LinkPropertyItemCache
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Methods
GetLinkProperties(Type, LinkPropertyType)
Get all properties which have LinkAttribute custome attribute for given Type.
public static IEnumerable<propertyinfo> GetLinkProperties(this Type type, LinkPropertyType propertyType = LinkPropertyType.All)
Parameters
type Type
The
propertyType LinkPropertyType
The
Returns
Found
GetLinkProperties(object, LinkPropertyType)
Get all properties which have LinkAttribute custome attribute for given object.
public static IEnumerable<propertyinfo> GetLinkProperties(this object obj, LinkPropertyType propertyType = LinkPropertyType.All)
Parameters
obj object
The object whiche want to find properties.
propertyType LinkPropertyType
The
Returns
Found
GetLinkPropertiesAndValues(object, LinkPropertyType)
Get all properties and their values which have LinkAttribute custome attribute for given object.
public static IEnumerable(PropertyInfo property, object value)> GetLinkPropertiesAndValues(this object obj, LinkPropertyType propertyType = LinkPropertyType.All)
Parameters
obj object
The object whiche want to find properties.
propertyType LinkPropertyType
The
Returns
IEnumerable(PropertyInfo property, object value)>
Found
GetLinkedObjects(object, LinkPropertyType)
Get all propertiy values which have LinkAttribute custome attribute for given object.
public static IEnumerable<t> GetLinkedObjects<t>(this object obj, LinkPropertyType propertyType = LinkPropertyType.All)
Parameters
obj object
The object whiche want to find properties.
propertyType LinkPropertyType
The
Returns
Found
Type Parameters
T
The type of property value