ObjectSourceMode Enum
Namespace: System.Runtime.Serialization
Remarks
Specifies the source from which an object is obtained during deserialization.
This enumeration is used by the OnDeserializationAttribute attribute to indicate whether to use the default deserialization behavior or a specific method to obtain the object.
The ObjectSourceMode enumeration is part of the .NET Framework's serialization infrastructure, enabling fine-grained control over the deserialization process, particularly when dealing with complex object graphs or custom serialization logic.
Enum Members
| Member name | Description |
|---|---|
Default |
Indicates that the default deserialization behavior should be used. The object is obtained using the standard deserialization mechanisms provided by the .NET Framework. |
Dynamic |
Indicates that the object should be obtained dynamically. This typically means a custom deserialization method or factory is involved. |
Requirements
namespace System.Runtime.Serialization
{
public enum ObjectSourceMode
{
Default = 0,
Dynamic = 1
}
}