T
The type of object to serialize.
Leadtools.Dicom.AddIn Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Generic Serialize Method
See Also 
Leadtools.Dicom.AddIn Namespace > AddInUtils Class : Generic Serialize Method



obj
The object to serialize.
filename
The xml to store the serialized object.
obj
The object to serialize.
filename
The xml to store the serialized object.
Serializes the specified object to an xml file.

Syntax

Visual Basic (Declaration) 
Public Shared Sub Serialize(Of T)( _
   ByVal obj As T, _
   ByVal filename As String _
) 
Visual Basic (Usage)Copy Code
Dim obj As T
Dim filename As String
 
AddInUtils.Serialize(Of T)(obj, filename)
C# 
public static void Serialize<T>( 
   T obj,
   string filename
)
C++/CLI 
public:
static void Serializegeneric<typename T>
( 
   T obj,
   String^ filename
) 

Parameters

obj
The object to serialize.
filename
The xml to store the serialized object.

Type Parameters

T
The type of object to serialize.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features