Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToDefaultValue()

static object System.Xml.Serialization.XmlCustomFormatter.ToDefaultValue ( string value,
string formatter )
inlinestaticpackage

Definition at line 215 of file XmlCustomFormatter.cs.

216 {
217 return formatter switch
218 {
219 "DateTime" => ToDateTime(value),
220 "Date" => ToDate(value),
221 "Time" => ToTime(value),
222 "XmlName" => ToXmlName(value),
223 "XmlNCName" => ToXmlNCName(value),
224 "XmlNmToken" => ToXmlNmToken(value),
225 "XmlNmTokens" => ToXmlNmTokens(value),
227 };
228 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlUnsupportedDefaultValue
Definition SR.cs:1518
Definition SR.cs:7

References System.Xml.Dictionary, System.SR.Format(), System.Xml.Serialization.XmlCustomFormatter.ToDate(), System.Xml.Serialization.XmlCustomFormatter.ToDateTime(), System.Xml.Serialization.XmlCustomFormatter.ToTime(), System.Xml.Serialization.XmlCustomFormatter.ToXmlName(), System.Xml.Serialization.XmlCustomFormatter.ToXmlNCName(), System.Xml.Serialization.XmlCustomFormatter.ToXmlNmToken(), System.Xml.Serialization.XmlCustomFormatter.ToXmlNmTokens(), System.value, System.Xml.XmlException, and System.SR.XmlUnsupportedDefaultValue.

Referenced by System.Xml.Serialization.XmlSchemaImporter.ImportEnumeratedDataType().