    

 ## On this page

  

 

 # Class DictionaryExtensions

 Last update: 09.03.2026 

<a id="VM_Models_Pre_DictionaryExtensions"></a>

Namespace: [VM.Models.Pre](VM.Models.Pre.md)  
Assembly: VM.Models.Pre.dll

```csharp
public static class DictionaryExtensions

```

#### Inheritance

object ← [DictionaryExtensions](VM.Models.Pre.DictionaryExtensions.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### <a id="VM_Models_Pre_DictionaryExtensions_TryChangeKey__2_System_Collections_Generic_IDictionary___0___1____0___0_"></a> TryChangeKey&lt;TKey, TValue&gt;(IDictionary&lt;TKey, TValue&gt;, TKey, TKey)

```csharp
public static bool TryChangeKey<TKey, TValue>(this IDictionary<TKey, TValue> dictionary, TKey fromKey, TKey toKey)

```

#### Parameters

`dictionary` IDictionary&lt;TKey, TValue&gt;

`fromKey` TKey

`toKey` TKey

#### Returns

bool

#### Type Parameters

`TKey`

`TValue`