31 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
37 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
111 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
117 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
131 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
137 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
146 return (XmlFormatGetOnlyCollectionReaderDelegate)
_ilg.
EndMethod();
187 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
203 if (
type.IsValueType)
279 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
303 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
336 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
383 int num =
contract.MemberNames.Length;
384 bool[]
array =
new bool[num];
408 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
420 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
429 type =
type.GetGenericArguments()[0];
444 else if (
type.IsValueType)
456 if (
type.IsValueType)
471 if (!
type.IsValueType)
481 if (
type.IsValueType)
507 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
521 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
538 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
545 if (
type.IsInterface)
573 if (
type.IsValueType)
575 _ilg.
Ldloca(_objectLocal);
581 _ilg.
Stloc(_objectLocal);
607 IsStartElement(_memberNamesArg, _memberNamespacesArg);
635 _ilg.
Stloc(_objectLocal);
643 _ilg.
Stloc(_objectLocal);
648 IsStartElement(_memberNamesArg, _memberNamespacesArg);
673 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
682 _ilg.
Load(_contextArg);
685 _ilg.
Stloc(_objectLocal);
686 IsStartElement(_memberNamesArg, _memberNamespacesArg);
688 _ilg.
If(_objectLocal,
Cmp.EqualTo,
null);
694 _ilg.
Load(_objectLocal);
701 IsStartElement(_memberNamesArg, _memberNamespacesArg);
731 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
743 text =
"TryReadBooleanArray";
746 text =
"TryReadDateTimeArray";
749 text =
"TryReadDecimalArray";
752 text =
"TryReadInt32Array";
755 text =
"TryReadInt64Array";
758 text =
"TryReadSingleArray";
761 text =
"TryReadDoubleArray";
778 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
797 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
884 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
890 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
896 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
907 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
static object GetUninitializedObject([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type type)
void Ldloca(LocalBuilder localBuilder)
void Ldloc(LocalBuilder localBuilder)
void NewArray(Type elementType, object len)
void InitObj(Type valueType)
void Call(object thisObj, MethodInfo methodInfo)
void IfNotIsEmptyString(LocalBuilder strLocal)
void BeginMethod(DynamicMethod dynamicMethod, Type delegateType, string methodName, Type[] argTypes, bool allowPrivateMemberAccess)
void LoadAddress(object obj)
void ElseIfIsEmptyString(LocalBuilder strLocal)
Type LoadMember(MemberInfo memberInfo)
Label[] Switch(int labelCount)
void Stloc(LocalBuilder local)
void Break(object forState)
void StoreMember(MemberInfo memberInfo)
void Case(Label caseLabel1, string caseLabelName)
void IfFalseBreak(object forState)
void Set(LocalBuilder local, object value)
object For(LocalBuilder local, object start, object end)
ArgBuilder GetArg(int index)
LocalBuilder DeclareLocal(Type type, string name, object initialValue)
void StoreArrayElement(object obj, object arrayIndex, object value)
void ConvertAddress(Type source, Type target)
void ConvertValue(Type source, Type target)
void New(ConstructorInfo constructorInfo)
static SerializationOption Option
static int GetIdForInitialization(ClassDataContract classContract)
static DataContract GetDataContractForInitialization(int id)
static int GetId(RuntimeTypeHandle typeHandle)
static bool IsTypeSerializable(Type type)
static string GetClrTypeFullName(Type type)
static DataContract GetDataContract(Type type)
static Type TypeOfKeyValuePair
static Type TypeOfIDeserializationCallback
static Type TypeOfDictionaryGeneric
static Type TypeOfXmlFormatCollectionReaderDelegate
static Type TypeOfDateTimeOffset
static Type TypeOfIObjectReference
static Type TypeOfMemoryStream
static Type TypeOfMemoryStreamAdapter
static Type TypeOfXmlFormatClassReaderDelegate
static Type TypeOfNullable
static Type TypeOfValueType
static Type TypeOfDateTimeOffsetAdapter
static Type TypeOfHashtable
static Type TypeOfXmlFormatGetOnlyCollectionReaderDelegate
static Type TypeOfExtensionDataObject
static PrimitiveDataContract GetPrimitiveDataContract(Type type)
object ReflectionReadClass(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString[] memberNames, XmlDictionaryString[] memberNamespaces)
void ReflectionReadGetOnlyCollection(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNs, CollectionDataContract collectionContract)
object ReflectionReadCollection(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, CollectionDataContract collectionContract)
static string ValueTypeCannotHaveId
static string Format(string resourceFormat, object p1)
static string ValueTypeCannotHaveRef
static string ValueTypeCannotBeNull
static readonly Type[] EmptyTypes
DynamicallyAccessedMemberTypes