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

◆ ToGuid() [2/2]

static Guid System.Xml.XmlConverter.ToGuid ( string value)
inlinestatic

Definition at line 324 of file XmlConverter.cs.

325 {
326 try
327 {
328 return new Guid(Trim(value));
329 }
330 catch (FormatException exception)
331 {
332 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "Guid", exception));
333 }
335 {
336 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "Guid", exception2));
337 }
338 catch (OverflowException exception3)
339 {
340 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "Guid", exception3));
341 }
342 }
static string Trim(string s)

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

Referenced by System.Xml.XmlDictionaryReader.ReadContentAs(), System.Xml.XmlBaseReader.ReadContentAsGuid(), System.Xml.XmlDictionaryReader.ReadContentAsGuid(), System.Xml.ValueHandle.ToGuid(), and System.Xml.XmlConverter.ToGuid().