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

◆ ReadElementContentAsGuid()

virtual Guid System.Xml.XmlDictionaryReader.ReadElementContentAsGuid ( )
inlinevirtualinherited

Reimplemented in System.Xml.XmlBinaryReader.

Definition at line 1265 of file XmlDictionaryReader.cs.

1266 {
1267 Guid result;
1269 {
1270 Read();
1271 try
1272 {
1273 result = new Guid(string.Empty);
1274 }
1276 {
1277 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(string.Empty, "Guid", exception));
1278 }
1279 catch (FormatException exception2)
1280 {
1281 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(string.Empty, "Guid", exception2));
1282 }
1283 catch (OverflowException exception3)
1284 {
1285 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(string.Empty, "Guid", exception3));
1286 }
1287 }
1288 else
1289 {
1291 result = ReadContentAsGuid();
1293 }
1294 return result;
1295 }
virtual bool IsStartElement()
Definition XmlReader.cs:760
virtual void ReadStartElement()
Definition XmlReader.cs:629
virtual void ReadEndElement()
Definition XmlReader.cs:751

References System.Xml.XmlExceptionHelper.CreateConversionException(), System.Xml.Dictionary, System.exception, System.Xml.Guid, System.Xml.XmlReader.IsEmptyElement, System.Xml.XmlReader.IsStartElement(), System.Xml.XmlReader.Read(), System.Xml.XmlDictionaryReader.ReadContentAsGuid(), System.Xml.XmlReader.ReadEndElement(), System.Xml.XmlReader.ReadStartElement(), and System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError().

Referenced by System.Xml.XmlDictionaryReader.ReadArray().