> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class SerializeUtil

Namespace: [VM.Managed](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed)\
Assembly: VMObjBase.dll

SerializeUtil

```csharp theme={null}
public class SerializeUtil
```

#### Inheritance

object ←
[SerializeUtil](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.SerializeUtil.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### SerializeUtil()

```csharp theme={null}
public SerializeUtil()
```

## Methods

### Deserial\<T>(string, Type)

Deserialize data

```csharp theme={null}
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

### Deserial\<T>(string)

```csharp theme={null}
public static T Deserial<T>(string xml)
```

#### Parameters

`xml` string

The object xml

#### Returns

T

#### Type Parameters

`T`

The object type

### Serial\<T>(T)

Serialize data

```csharp theme={null}
public static string Serial<T>(T obj)
```

#### Parameters

`obj` T

The object

#### Returns

string

The new String object.

#### Type Parameters

`T`

The object type

### Serial(ObjectBase)

```csharp theme={null}
public static string Serial(ObjectBase obj)
```

#### Parameters

`obj` ObjectBase

#### Returns

string

### SerialXmlDoc\<T>(T)

Serialize data

```csharp theme={null}
public static XmlDocument SerialXmlDoc<T>(T obj)
```

#### Parameters

`obj` T

The object

#### Returns

XmlDocument

The new XmlDocument object.

#### Type Parameters

`T`

The object type
