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

◆ ToUniqueId() [2/2]

static UniqueId System.Xml.XmlConverter.ToUniqueId ( string value)
inlinestatic

Definition at line 278 of file XmlConverter.cs.

279 {
280 try
281 {
282 return new UniqueId(Trim(value));
283 }
285 {
286 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "UniqueId", exception));
287 }
288 catch (FormatException exception2)
289 {
290 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "UniqueId", exception2));
291 }
292 }
static string Trim(string s)

References System.Xml.XmlExceptionHelper.CreateConversionException(), System.Xml.Dictionary, System.exception, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.Xml.XmlConverter.Trim(), System.Xml.UniqueId, and System.value.

Referenced by System.Xml.XmlDictionaryReader.ReadContentAs(), System.Xml.XmlBaseReader.ReadContentAsUniqueId(), System.Xml.XmlDictionaryReader.ReadContentAsUniqueId(), System.Xml.ValueHandle.ToUniqueId(), and System.Xml.XmlConverter.ToUniqueId().