Class LinkPropertyItemCache
Last update: 09.03.2026Namespace: 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<T>(object, LinkPropertyType)
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
IEnumerable<PropertyInfo>
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
IEnumerable<PropertyInfo>
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<T>(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
IEnumerable<T>
Found
Type Parameters
T
The type of property value