Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ SimplifyValue()

static object System.Xml.Xsl.XsltOld.NumberAction.SimplifyValue ( object value)
inlinestaticprivate

Definition at line 362 of file NumberAction.cs.

363 {
364 if (Type.GetTypeCode(value.GetType()) == TypeCode.Object)
365 {
367 {
368 if (xPathNodeIterator.MoveNext())
369 {
370 return xPathNodeIterator.Current.Value;
371 }
372 return string.Empty;
373 }
375 {
376 return xPathNavigator.Value;
377 }
378 }
379 return value;
380 }

References System.Type.GetTypeCode(), and System.value.

Referenced by System.Xml.Xsl.XsltOld.NumberAction.Execute().