Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Class LinkPropertyItemCache

Last update: 16.07.2025

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

objectLinkPropertyItemCache

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(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

IEnumerablePropertyInfo&gt;

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

IEnumerablePropertyInfo&gt;

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)&gt; 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)&gt;

Found of and its value.

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

Returns

IEnumerable

Found of property values.

Type Parameters

T

The type of property value

Connect with Ansys