    

 ## On this page

  

 

 # Class SerializeUtil

 Last update: 16.07.2025 

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

SerializeUtil

```csharp
public class SerializeUtil

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.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

### SerializeUtil()

```csharp
public SerializeUtil()

```

## Methods

### Deserial&lt;T&gt;(string, Type)

Deserialize data

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

```

#### Parameters

`xml` [string](https://learn.microsoft.com/dotnet/api/system.string)

The object xml

`type` [Type](https://learn.microsoft.com/dotnet/api/system.type)

The deserialized explicit type

#### Returns

T

#### Type Parameters

`T`

The object type

### Deserial&lt;T&gt;(string)

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

```

#### Parameters

`xml` [string](https://learn.microsoft.com/dotnet/api/system.string)

The object xml

#### Returns

T

#### Type Parameters

`T`

The object type

### Serial&lt;T&gt;(T)

Serialize data

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

```

#### Parameters

`obj` T

The object

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The new  object.

#### Type Parameters

`T`

The object type

### Serial(ObjectBase)

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

```

#### Parameters

`obj` ObjectBase

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### SerialXmlDoc&lt;T&gt;(T)

Serialize data

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

```

#### Parameters

`obj` T

The object

#### Returns

[XmlDocument](https://learn.microsoft.com/dotnet/api/system.xml.xmldocument)

The new  object.

#### Type Parameters

`T`

The object type