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

◆ Value

string System.Xml.Linq.XElement.Value
getset

Definition at line 93 of file XElement.cs.

94 {
95 get
96 {
97 if (content == null)
98 {
99 return string.Empty;
100 }
101 if (content is string result)
102 {
103 return result;
104 }
106 AppendText(sb);
108 }
109 set
110 {
111 if (value == null)
112 {
113 throw new ArgumentNullException("value");
114 }
115 RemoveNodes();
116 Add(value);
117 }
118 }
static string GetStringAndRelease(StringBuilder sb)
static StringBuilder Acquire(int capacity=16)
override void AppendText(StringBuilder sb)

Referenced by MS.Internal.Xml.Linq.ComponentModel.XElementValuePropertyDescriptor.GetValue(), System.Xml.Linq.XElement.operator bool(), System.Xml.Linq.XElement.operator DateTime(), System.Xml.Linq.XElement.operator DateTimeOffset(), System.Xml.Linq.XElement.operator decimal(), System.Xml.Linq.XElement.operator double(), System.Xml.Linq.XElement.operator float(), System.Xml.Linq.XElement.operator Guid(), System.Xml.Linq.XElement.operator int(), System.Xml.Linq.XElement.operator long(), System.Xml.Linq.XElement.operator TimeSpan(), System.Xml.Linq.XElement.operator uint(), System.Xml.Linq.XElement.operator ulong(), and System.Xml.Linq.XElement.SetValue().