    

 ## On this page

  

 

 # Class SerializeUtil

 Last update: 09.03.2026 

<a id="VM_Managed_SerializeUtil"></a>

Namespace: [VM.Managed](VM.Managed.md)  
Assembly: VMObjBase.dll

SerializeUtil

```csharp
public class SerializeUtil

```

#### Inheritance

object ← [SerializeUtil](VM.Managed.SerializeUtil.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_)

## Constructors

### <a id="VM_Managed_SerializeUtil__ctor"></a> SerializeUtil()

```csharp
public SerializeUtil()

```

## Methods

### <a id="VM_Managed_SerializeUtil_Deserial__1_System_String_System_Type_"></a> Deserial&lt;T&gt;(string, Type)

Deserialize data

```csharp
public static T Deserial<T>(string xml, Type type)

```

#### Parameters

`xml` string

The object xml

`type` Type

The deserialized explicit type

#### Returns

T

#### Type Parameters

`T`

The object type

### <a id="VM_Managed_SerializeUtil_Deserial__1_System_String_"></a> Deserial&lt;T&gt;(string)

```csharp
public static T Deserial<T>(string xml)

```

#### Parameters

`xml` string

The object xml

#### Returns

T

#### Type Parameters

`T`

The object type

### <a id="VM_Managed_SerializeUtil_Serial__1___0_"></a> Serial&lt;T&gt;(T)

Serialize data

```csharp
public static string Serial<T>(T obj)

```

#### Parameters

`obj` T

The object

#### Returns

string

The new  object.

#### Type Parameters

`T`

The object type

### <a id="VM_Managed_SerializeUtil_Serial_VM_Managed_ObjectBase_"></a> Serial(ObjectBase)

```csharp
public static string Serial(ObjectBase obj)

```

#### Parameters

`obj` ObjectBase

#### Returns

string

### <a id="VM_Managed_SerializeUtil_SerialXmlDoc__1___0_"></a> SerialXmlDoc&lt;T&gt;(T)

Serialize data

```csharp
public static XmlDocument SerialXmlDoc<T>(T obj)

```

#### Parameters

`obj` T

The object

#### Returns

XmlDocument

The new  object.

#### Type Parameters

`T`

The object type