Skip to main content

Motion Standalone Preprocessor C# library 2026 R1

Class LinkPropertyItemCache

Last update: 09.03.2026

Namespace: 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 whiche want to find properties.

propertyType LinkPropertyType

The to search.

Returns

IEnumerable<PropertyInfo>

Found of .

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 to search.

Returns

IEnumerable<PropertyInfo>

Found of .

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 to search.

Returns

IEnumerable<(PropertyInfo property, object value)>

Found of and its value.

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 to search.

Returns

IEnumerable<T>

Found of property values.

Type Parameters

T

The type of property value

Connect with Ansys