T
The type of object to serialize.
LEADTOOLS Medical (Leadtools.Dicom.AddIn assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Serialize<T> Method
See Also 
Leadtools.Dicom.AddIn Namespace > AddInUtils Class : Serialize<T> 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 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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