1 implementation of Value
System.Runtime.Serialization (1)
System\Runtime\Serialization\ExtensionDataObject.cs (1)
119public object Value
1 write to Value
System.Runtime.Serialization (1)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
84deserializedDataNode.Value = obj;
33 references to Value
System.Runtime.Serialization (33)
System\Runtime\Serialization\ExtensionDataReader.cs (22)
482else if (dataNode.Value != null) 517if (node.Id != Globals.NewObjectId && (node.Value == null || !node.IsFinalValue)) 638type = dataNode.Value.GetType(); 666this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<bool>)dataNode).GetValue() : (bool)dataNode.Value); 669this.value = XmlConvert.ToString((int)(isTypedNode ? ((DataNode<char>)dataNode).GetValue() : (char)dataNode.Value)); 672this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<byte>)dataNode).GetValue() : (byte)dataNode.Value); 675this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<short>)dataNode).GetValue() : (short)dataNode.Value); 678this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<int>)dataNode).GetValue() : (int)dataNode.Value); 681this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<long>)dataNode).GetValue() : (long)dataNode.Value); 684this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<float>)dataNode).GetValue() : (float)dataNode.Value); 687this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<double>)dataNode).GetValue() : (double)dataNode.Value); 690this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<decimal>)dataNode).GetValue() : (decimal)dataNode.Value); 693DateTime dateTime = isTypedNode ? ((DataNode<DateTime>)dataNode).GetValue() : (DateTime)dataNode.Value; 697this.value = isTypedNode ? ((DataNode<string>)dataNode).GetValue() : (string)dataNode.Value; 700this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<sbyte>)dataNode).GetValue() : (sbyte)dataNode.Value); 703this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<ushort>)dataNode).GetValue() : (ushort)dataNode.Value); 706this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<uint>)dataNode).GetValue() : (uint)dataNode.Value); 709this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<ulong>)dataNode).GetValue() : (ulong)dataNode.Value); 715byte[] bytes = isTypedNode ? ((DataNode<byte[]>)dataNode).GetValue() : (byte[])dataNode.Value; 719this.value = XmlConvert.ToString(isTypedNode ? ((DataNode<TimeSpan>)dataNode).GetValue() : (TimeSpan)dataNode.Value); 722Guid guid = isTypedNode ? ((DataNode<Guid>)dataNode).GetValue() : (Guid)dataNode.Value; 727Uri uri = isTypedNode ? ((DataNode<Uri>)dataNode).GetValue() : (Uri)dataNode.Value;
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (2)
246else if ((dataType == Globals.TypeOfObject) && (dataNode.Value != null)) 248DataContract dc = GetDataContract(dataNode.Value.GetType());
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
416retObj = (dataNode.Value != null && dataNode.IsFinalValue) ? dataNode.Value : DeserializeFromExtensionData(dataNode, type, name, ns);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (6)
597&& OnHandleReference(xmlWriter, (dataNode.Value == null ? dataNode : dataNode.Value), true /*canContainCyclicReference*/)) 617object o = dataNode.Value; 625OnEndHandleReference(xmlWriter, (dataNode.Value == null ? dataNode : dataNode.Value), true /*canContainCyclicReference*/); 630object o = dataNode.Value;
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
424object obj = dataNode.Value;