288 references to ValueHandleType
System.Private.DataContractSerialization (288)
System\Runtime\Serialization\Json\XmlJsonReader.cs (9)
614MoveToAtomicText().Value.SetValue(ValueHandleType.UTF8, offset, 5); 635MoveToAtomicText().Value.SetValue(ValueHandleType.UTF8, offset, 4); 765this.Node.Value.SetValue(ValueHandleType.UTF8, 0, 0); 1333MoveToAtomicText().Value.SetValue(ValueHandleType.UTF8, offset, length); 1338MoveToComplexText().Value.SetValue(ValueHandleType.UTF8, offset, length); 1378MoveToAtomicText().Value.SetValue(ValueHandleType.UTF8, offset, length); 1393MoveToComplexText().Value.SetValue(ValueHandleType.UTF8, offset, length); 1464attribute.Value.SetValue(ValueHandleType.UTF8, offset, BufferReader.Offset - 1 - offset); 1510attribute.Value.SetValue(ValueHandleType.UTF8, elementNode.NameOffset, elementNode.NameLength);
System\Xml\ValueHandle.cs (202)
70private ValueHandleType _type; 85_type = ValueHandleType.Empty; 90_type = ValueHandleType.ConstString; 94public void SetValue(ValueHandleType type) 101SetValue(ValueHandleType.Dictionary, key, 0); 106SetValue(ValueHandleType.Char, ch, 0); 111SetValue(ValueHandleType.QName, key, prefix); 114public void SetValue(ValueHandleType type, int offset, int length) 125case ValueHandleType.UTF8: 128case ValueHandleType.Dictionary: 131case ValueHandleType.Char: 135case ValueHandleType.EscapedUTF8: 138case ValueHandleType.Unicode: 141case ValueHandleType.True: 142case ValueHandleType.False: 143case ValueHandleType.Zero: 144case ValueHandleType.One: 147case ValueHandleType.ConstString: 159case ValueHandleType.False: 160case ValueHandleType.True: 162case ValueHandleType.Zero: 163case ValueHandleType.One: 164case ValueHandleType.Int8: 165case ValueHandleType.Int16: 166case ValueHandleType.Int32: 168case ValueHandleType.Int64: 170case ValueHandleType.UInt64: 172case ValueHandleType.Single: 174case ValueHandleType.Double: 176case ValueHandleType.Decimal: 178case ValueHandleType.DateTime: 180case ValueHandleType.Empty: 181case ValueHandleType.UTF8: 182case ValueHandleType.Unicode: 183case ValueHandleType.EscapedUTF8: 184case ValueHandleType.Dictionary: 185case ValueHandleType.Char: 186case ValueHandleType.QName: 187case ValueHandleType.ConstString: 189case ValueHandleType.Base64: 191case ValueHandleType.List: 193case ValueHandleType.UniqueId: 195case ValueHandleType.Guid: 197case ValueHandleType.TimeSpan: 206ValueHandleType type = _type; 207if (type == ValueHandleType.False) 209if (type == ValueHandleType.True) 211if (type == ValueHandleType.UTF8) 213if (type == ValueHandleType.Int8) 226ValueHandleType type = _type; 227if (type == ValueHandleType.Zero) 229if (type == ValueHandleType.One) 231if (type == ValueHandleType.Int8) 233if (type == ValueHandleType.Int16) 235if (type == ValueHandleType.Int32) 237if (type == ValueHandleType.Int64) 245if (type == ValueHandleType.UInt64) 253if (type == ValueHandleType.UTF8) 260ValueHandleType type = _type; 261if (type == ValueHandleType.Zero) 263if (type == ValueHandleType.One) 265if (type == ValueHandleType.Int8) 267if (type == ValueHandleType.Int16) 269if (type == ValueHandleType.Int32) 271if (type == ValueHandleType.Int64) 273if (type == ValueHandleType.UInt64) 281if (type == ValueHandleType.UTF8) 290ValueHandleType type = _type; 291if (type == ValueHandleType.Zero) 293if (type == ValueHandleType.One) 295if (type >= ValueHandleType.Int8 && type <= ValueHandleType.Int64) 301if (type == ValueHandleType.UInt64) 303if (type == ValueHandleType.UTF8) 310ValueHandleType type = _type; 311if (type == ValueHandleType.Single) 313if (type == ValueHandleType.Double) 322if (type == ValueHandleType.Zero) 324if (type == ValueHandleType.One) 326if (type == ValueHandleType.Int8) 328if (type == ValueHandleType.Int16) 330if (type == ValueHandleType.UTF8) 337ValueHandleType type = _type; 338if (type == ValueHandleType.Double) 340if (type == ValueHandleType.Single) 342if (type == ValueHandleType.Zero) 344if (type == ValueHandleType.One) 346if (type == ValueHandleType.Int8) 348if (type == ValueHandleType.Int16) 350if (type == ValueHandleType.Int32) 352if (type == ValueHandleType.UTF8) 359ValueHandleType type = _type; 360if (type == ValueHandleType.Decimal) 362if (type == ValueHandleType.Zero) 364if (type == ValueHandleType.One) 366if (type >= ValueHandleType.Int8 && type <= ValueHandleType.Int64) 368if (type == ValueHandleType.UInt64) 370if (type == ValueHandleType.UTF8) 377if (_type == ValueHandleType.DateTime) 381if (_type == ValueHandleType.UTF8) 390if (_type == ValueHandleType.UniqueId) 392if (_type == ValueHandleType.UTF8) 399if (_type == ValueHandleType.TimeSpan) 401if (_type == ValueHandleType.UTF8) 408if (_type == ValueHandleType.Guid) 410if (_type == ValueHandleType.UTF8) 422if (_type == ValueHandleType.Base64) 428if (_type == ValueHandleType.UTF8 && (_length % 4) == 0) 469ValueHandleType type = _type; 470if (type == ValueHandleType.UTF8) 475case ValueHandleType.False: 477case ValueHandleType.True: 479case ValueHandleType.Zero: 481case ValueHandleType.One: 483case ValueHandleType.Int8: 484case ValueHandleType.Int16: 485case ValueHandleType.Int32: 487case ValueHandleType.Int64: 489case ValueHandleType.UInt64: 491case ValueHandleType.Single: 493case ValueHandleType.Double: 495case ValueHandleType.Decimal: 497case ValueHandleType.DateTime: 499case ValueHandleType.Empty: 501case ValueHandleType.Unicode: 503case ValueHandleType.EscapedUTF8: 505case ValueHandleType.Char: 507case ValueHandleType.Dictionary: 509case ValueHandleType.Base64: 513case ValueHandleType.List: 515case ValueHandleType.UniqueId: 517case ValueHandleType.Guid: 519case ValueHandleType.TimeSpan: 521case ValueHandleType.QName: 523case ValueHandleType.ConstString: 533if (_type != ValueHandleType.UTF8) 560case ValueHandleType.Int8: 561case ValueHandleType.Int16: 562case ValueHandleType.Int32: 565case ValueHandleType.Int64: 568case ValueHandleType.UInt64: 571case ValueHandleType.Single: 574case ValueHandleType.Double: 577case ValueHandleType.Decimal: 580case ValueHandleType.DateTime: 583case ValueHandleType.Empty: 585case ValueHandleType.UTF8: 588case ValueHandleType.Base64: 591case ValueHandleType.UniqueId: 594case ValueHandleType.Guid: 597case ValueHandleType.TimeSpan: 615case ValueHandleType.False: 616case ValueHandleType.True: 618case ValueHandleType.Zero: 619case ValueHandleType.One: 620case ValueHandleType.Int8: 621case ValueHandleType.Int16: 622case ValueHandleType.Int32: 624case ValueHandleType.Int64: 626case ValueHandleType.UInt64: 628case ValueHandleType.Single: 630case ValueHandleType.Double: 632case ValueHandleType.Decimal: 634case ValueHandleType.DateTime: 636case ValueHandleType.Empty: 637case ValueHandleType.UTF8: 638case ValueHandleType.Unicode: 639case ValueHandleType.EscapedUTF8: 640case ValueHandleType.Dictionary: 641case ValueHandleType.Char: 642case ValueHandleType.ConstString: 644case ValueHandleType.Base64: 646case ValueHandleType.List: 648case ValueHandleType.UniqueId: 650case ValueHandleType.Guid: 652case ValueHandleType.TimeSpan: 661if (_type == ValueHandleType.Base64) 669if (_type == ValueHandleType.UTF8 && count >= 3 && (_length % 4) == 0) 692if (_type == ValueHandleType.Unicode) 695if (_type != ValueHandleType.UTF8) 820if (_type == ValueHandleType.Dictionary) 834if (_type == ValueHandleType.Base64) 844Debug.Assert(_type == ValueHandleType.UTF8); 852Debug.Assert(_type == ValueHandleType.Unicode); 858Debug.Assert(_type == ValueHandleType.EscapedUTF8); 876Debug.Assert(_type == ValueHandleType.Char); 882Debug.Assert(_type == ValueHandleType.Int8); 888Debug.Assert(_type == ValueHandleType.Int16); 894Debug.Assert(_type == ValueHandleType.Int32); 900Debug.Assert(_type == ValueHandleType.Int64 || _type == ValueHandleType.TimeSpan || _type == ValueHandleType.DateTime); 906Debug.Assert(_type == ValueHandleType.UInt64); 912Debug.Assert(_type == ValueHandleType.Single); 918Debug.Assert(_type == ValueHandleType.Double); 924Debug.Assert(_type == ValueHandleType.Decimal); 930Debug.Assert(_type == ValueHandleType.UniqueId); 936Debug.Assert(_type == ValueHandleType.Guid); 942Debug.Assert(_type == ValueHandleType.Base64); 948Debug.Assert(_type == ValueHandleType.Dictionary); 954Debug.Assert(_type == ValueHandleType.QName);
System\Xml\XmlBinaryReader.cs (39)
532MoveToAtomicTextWithEndElement().Value.SetValue(ValueHandleType.Empty); 537MoveToAtomicTextWithEndElement().Value.SetValue(ValueHandleType.Zero); 542MoveToAtomicTextWithEndElement().Value.SetValue(ValueHandleType.One); 547MoveToAtomicTextWithEndElement().Value.SetValue(ValueHandleType.True); 552MoveToAtomicTextWithEndElement().Value.SetValue(ValueHandleType.False); 557MoveToAtomicTextWithEndElement().Value.SetValue(ReadUInt8() != 0 ? ValueHandleType.True : ValueHandleType.False); 563ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.UTF8, ReadUInt8()); 569ReadText(MoveToComplexText(), ValueHandleType.UTF8, ReadUInt8()); 575ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.UTF8, ReadUInt16()); 581ReadText(MoveToComplexText(), ValueHandleType.UTF8, ReadUInt16()); 587ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.UTF8, ReadUInt31()); 593ReadText(MoveToComplexText(), ValueHandleType.UTF8, ReadUInt31()); 655ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.UniqueId, ValueHandleLength.UniqueId); 658ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.Guid, ValueHandleLength.Guid); 661ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.Decimal, ValueHandleLength.Decimal); 664ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.Int8, ValueHandleLength.Int8); 667ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.Int16, ValueHandleLength.Int16); 670ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.Int32, ValueHandleLength.Int32); 673ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.Int64, ValueHandleLength.Int64); 676ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.UInt64, ValueHandleLength.UInt64); 679ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.Single, ValueHandleLength.Single); 682ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.Double, ValueHandleLength.Double); 685ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.TimeSpan, ValueHandleLength.TimeSpan); 688ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.DateTime, ValueHandleLength.DateTime); 863private void ReadText(XmlTextNode textNode, ValueHandleType type, int length) 873ReadText(textNode, ValueHandleType.Base64, length); 885ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.UTF8, length); 887ReadText(MoveToComplexText(), ValueHandleType.UTF8, length); 916MoveToComplexText().Value.SetValue(ValueHandleType.UTF8, offset, actual); 933ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.Unicode, length); 937ReadText(MoveToComplexText(), ValueHandleType.Unicode, length); 955ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.Unicode, length); 957ReadText(MoveToComplexText(), ValueHandleType.Unicode, length); 981MoveToComplexText().Value.SetValue(ValueHandleType.Unicode, offset, actual); 997ReadText(MoveToAtomicTextWithEndElement(), ValueHandleType.Base64, length); 999ReadText(MoveToComplexText(), ValueHandleType.Base64, length); 1006ReadText(MoveToComplexText(), ValueHandleType.Base64, actual); 1040value.SetValue(ValueHandleType.UTF8, offset, length);
System\Xml\XmlBufferReader.cs (28)
1091value.SetValue(ValueHandleType.Empty); 1094value.SetValue(ValueHandleType.Zero); 1097value.SetValue(ValueHandleType.One); 1100value.SetValue(ValueHandleType.True); 1103value.SetValue(ValueHandleType.False); 1106value.SetValue(ReadUInt8() != 0 ? ValueHandleType.True : ValueHandleType.False); 1109ReadValue(value, ValueHandleType.UTF8, ReadUInt8()); 1112ReadValue(value, ValueHandleType.UTF8, ReadUInt16()); 1115ReadValue(value, ValueHandleType.UTF8, ReadUInt31()); 1127ReadValue(value, ValueHandleType.Base64, ReadUInt8()); 1130ReadValue(value, ValueHandleType.Base64, ReadUInt16()); 1133ReadValue(value, ValueHandleType.Base64, ReadUInt31()); 1139ReadValue(value, ValueHandleType.UniqueId, ValueHandleLength.UniqueId); 1142ReadValue(value, ValueHandleType.Guid, ValueHandleLength.Guid); 1145ReadValue(value, ValueHandleType.Decimal, ValueHandleLength.Decimal); 1148ReadValue(value, ValueHandleType.Int8, ValueHandleLength.Int8); 1151ReadValue(value, ValueHandleType.Int16, ValueHandleLength.Int16); 1154ReadValue(value, ValueHandleType.Int32, ValueHandleLength.Int32); 1157ReadValue(value, ValueHandleType.Int64, ValueHandleLength.Int64); 1160ReadValue(value, ValueHandleType.UInt64, ValueHandleLength.UInt64); 1163ReadValue(value, ValueHandleType.Single, ValueHandleLength.Single); 1166ReadValue(value, ValueHandleType.Double, ValueHandleLength.Double); 1169ReadValue(value, ValueHandleType.TimeSpan, ValueHandleLength.TimeSpan); 1172ReadValue(value, ValueHandleType.DateTime, ValueHandleLength.DateTime); 1186private void ReadValue(ValueHandle value, ValueHandleType type, int length) 1196ReadValue(value, ValueHandleType.Unicode, length); 1215value.SetValue(ValueHandleType.List, offset, count);
System\Xml\XmlUTF8TextReader.cs (10)
651declarationNode.Value.SetValue(ValueHandleType.UTF8, valueOffset, valueLength); 838attributeNode.Value.SetValue((escaped ? ValueHandleType.EscapedUTF8 : ValueHandleType.UTF8), valueOffset, valueLength); 846attributeNode.Value.SetValue((escaped ? ValueHandleType.EscapedUTF8 : ValueHandleType.UTF8), valueOffset, valueLength); 1040MoveToComment().Value.SetValue(ValueHandleType.UTF8, commentOffset, commentLength); 1082MoveToCData().Value.SetValue(ValueHandleType.UTF8, cdataOffset, cdataLength); 1122MoveToWhitespaceText().Value.SetValue(ValueHandleType.UTF8, offset, length); 1266MoveToAtomicText().Value.SetValue(ValueHandleType.UTF8, offset, length); 1270MoveToComplexText().Value.SetValue(ValueHandleType.UTF8, offset, length);