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

◆ Set()

override void System.Data.Common.CharStorage.Set ( int record,
object value )
inline

Definition at line 132 of file CharStorage.cs.

133 {
134 if (_nullValue == value)
135 {
136 _values[record] = '\0';
137 SetNullBit(record, flag: true);
138 return;
139 }
140 char c = ((IConvertible)value).ToChar(base.FormatProvider);
141 if (c < '\ud800' || c > '\udfff')
142 {
143 switch (c)
144 {
145 case '\t':
146 case '\n':
147 case '\r':
148 break;
149 default:
150 _values[record] = c;
151 SetNullBit(record, flag: false);
152 return;
153 }
154 }
155 throw ExceptionBuilder.ProblematicChars(c);
156 }
void SetNullBit(int recordNo, bool flag)

References System.Data.Common.DataStorage._nullValue, System.Data.Common.CharStorage._values, System.Xml.Dictionary, System.Data.ExceptionBuilder.ProblematicChars(), System.Data.Common.DataStorage.SetNullBit(), and System.value.