I\'m refactoring some objects that are serialized to XML but need to keep a few properties for backwards compatibility, I\'ve got a method that converts the old object into
Yes I agree with marking things with the name "Obsolete" we do this with Enum values
///
/// Determines the swap file location for a cluster.
///
/// This enum contains the original text based values for backwards compatibility with versions previous to "8.1".
public enum VMwareClusterSwapFileLocation
{
///
/// The swap file location is unknown.
///
Unknown = 0,
///
/// The swap file is stored in the virtual machine directory.
///
VmDirectory = 1,
///
/// The swap file is stored in the datastore specified by the host.
///
HostLocal = 2,
///
/// The swap file is stored in the virtual machine directory. This value is obsolete and used for backwards compatibility.
///
[XmlElement("vmDirectory")]
ObseleteVmDirectory = 3,
///
/// The swap file is stored in the datastore specified by the host. This value is obsolete and used for backwards compatibility.
///
[XmlElement("hostLocal")]
ObseleteHostLocal = 4,
}