35 if (x.Value !=
null || y.Value !=
null)
37 if (x.Value !=
null && y.Value !=
null && x.Value.ElementName == y.Value.ElementName && x.Value.Namespace == y.Value.Namespace && x.Value.DataType == y.Value.DataType)
50 return obj.Key.GetHashCode() +
obj.Value.ElementName.GetHashCode();
205 for (
int i = 0; i <
array.Length; i++)
380 if (dataType ==
typeof(
byte[]))
419 string attribute =
xmlReader.GetAttribute(
"InstanceType",
"urn:schemas-microsoft-com:xml-msdata");
422 string text =
xmlReader.GetAttribute(
"type",
"http://www.w3.org/2001/XMLSchema-instance");
423 if (
text !=
null &&
text.Length > 0)
426 if (
array.Length == 2 &&
xmlReader.LookupNamespace(
array[0]) ==
"http://www.w3.org/2001/XMLSchema")
504 return ((
Type)
value).AssemblyQualifiedName;
512 return value.ToString();
560 for (
int i = 0; i <
_values.Length; i++)
static ? object CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
static byte[] GetBytes(bool value)
void Add(TKey key, TValue value)
static DateTime ToDateTime(DateTime value)
static string ToBase64String(byte[] inArray)
static double ToDouble(object? value)
static bool ToBoolean([NotNullWhen(true)] object? value)
static unsafe byte[] FromBase64String(string s)
static InvalidOperationException InvalidOperation(string error)
static Type GetType(string value)
readonly object _nullValue
static bool IsTypeCustomType(Type type)
static StorageType GetStorageType(Type dataType)
static readonly IEqualityComparer< KeyValuePair< Type, XmlRootAttribute > > s_default
int GetHashCode(KeyValuePair< Type, XmlRootAttribute > obj)
bool Equals(KeyValuePair< Type, XmlRootAttribute > x, KeyValuePair< Type, XmlRootAttribute > y)
override int Compare(int recordNo1, int recordNo2)
ObjectStorage(DataColumn column, Type type)
static Dictionary< KeyValuePair< Type, XmlRootAttribute >, XmlSerializer > s_tempAssemblyCache
override void Set(int recordNo, object value)
static XmlSerializer GetXmlSerializer(Type type)
int CompareWithFamilies(object valueNo1, object valueNo2)
override void SetCapacity(int capacity)
override void Copy(int recordNo1, int recordNo2)
override object Get(int recordNo)
override object GetEmptyStorage(int recordCount)
override void SetStorage(object store, BitArray nullbits)
readonly bool _implementsIXmlSerializable
override string ConvertObjectToXml(object value)
static readonly XmlSerializerFactory s_serializerFactory
override void CopyValue(int record, object store, BitArray nullbits, int storeIndex)
override bool IsNull(int record)
static XmlSerializer GetXmlSerializer(Type type, XmlRootAttribute attribute)
override object ConvertXmlToObject(string s)
static void VerifyIDynamicMetaObjectProvider(Type type)
int CompareTo(object valueNo1, object valueNo2)
static readonly object s_tempAssemblyCacheLock
override int CompareValueTo(int recordNo1, object value)
override object Aggregate(int[] records, AggregateType kind)
Families GetFamily(Type dataType)
override void ConvertObjectToXml(object value, XmlWriter xmlWriter, XmlRootAttribute xmlAttrib)
override object ConvertXmlToObject(XmlReader xmlReader, XmlRootAttribute xmlAttrib)
static object ChangeTypeForXML(object value, Type type)
static Exception AggregateException(AggregateType aggregateType, Type type)
static Exception CanNotDeserializeObjectType()
static Exception StorageSetFailed()
static Exception TraceExceptionWithoutRethrow(Exception e)
static void EnsureTypeIsAllowed(Type type, TypeLimiter capturedLimiter=null)
static Type XsdtoClr(string xsdTypeName)
static byte Min(byte val1, byte val2)
static string Xml_DynamicWithoutXmlSerializable
static ? Type GetType(string typeName, bool throwOnError, bool ignoreCase)
static TypeCode GetTypeCode(Type? type)
virtual bool IsInstanceOfType([NotNullWhen(true)] object? o)
static DateTime SpecifyKind(DateTime value, DateTimeKind kind)