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

◆ ToSingle() [2/2]

static float System.Xml.XmlConverter.ToSingle ( string value)
inlinestatic

Definition at line 158 of file XmlConverter.cs.

159 {
160 try
161 {
162 return XmlConvert.ToSingle(value);
163 }
165 {
166 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "float", exception));
167 }
168 catch (FormatException exception2)
169 {
170 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "float", exception2));
171 }
172 catch (OverflowException exception3)
173 {
174 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "float", exception3));
175 }
176 }

References System.Xml.XmlExceptionHelper.CreateConversionException(), System.Xml.Dictionary, System.exception, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.Xml.XmlConvert.ToSingle(), and System.value.

Referenced by System.Xml.XmlBaseReader.ReadContentAsFloat(), System.Xml.XmlDictionaryReader.ReadContentAsFloat(), System.Xml.XmlDictionaryReader.ReadElementContentAsFloat(), System.Xml.ValueHandle.ToSingle(), and System.Xml.XmlConverter.ToSingle().