IDataSetSerializable Interface
System.Runtime.Serialization
Supports serialization of DataSet and DataTable objects.
Syntax
public interface IDataSetSerializable
Remarks
The IDataSetSerializable interface is a marker interface. It does not contain any methods or properties. Its sole purpose is to indicate that a class supports serialization of DataSet and DataTable objects.
When you serialize a DataSet or DataTable object using a formatter that supports this interface (such as the SoapFormatter or BinaryFormatter), the .NET Framework recognizes the serializable nature of these data structures and serializes them efficiently.
Classes that need to implement custom serialization logic for DataSet and DataTable might derive from this interface, although it's less common than implementing ISerializable directly. In most scenarios, the built-in serialization mechanisms handle DataSet and DataTable serialization effectively without explicit implementation of this interface.
Requirements
Assembly: System.Data (in System.Data.dll)
Namespace: System.Runtime.Serialization
Assembly Versions:
- .NET Framework: 1.0, 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.6, 4.7, 4.8