Example #1
0
        static XmlReflectionImporter()
        {
            IXmlMappingTypeWrapperObject wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(XmlMappingTypesHelper.XmlReflectionImporterType, new object[] { "defaultNs" });

            Type[] types;

            if (XmlMappingTypesHelper.XmlReflectionMemberType != null)
            {
                types = new Type[] {
                    typeof(string),
                    typeof(string),
                    XmlMappingTypesHelper.XmlReflectionMemberType.MakeArrayType(),
                    typeof(bool),
                    typeof(bool)
                };

                s_importMembersMapping = wrapperObject.GetMethod("ImportMembersMapping", types);
            }
            else
            {
                // XmlMappingTypesHelper.XmlReflectionMemberType is null only at pure Net Native runtime.
                // In that case, we don't really need to set the following method.
                s_importMembersMapping = null;
            }

            types = new Type[] { typeof(Type) };
            s_importTypeMapping = wrapperObject.GetMethod("ImportTypeMapping", types);

            s_includeType = wrapperObject.GetMethod("IncludeType", types);
        }
Example #2
0
 public XmlReflectionImporter(string defaultNs)
 {
     _wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(XmlMappingTypesHelper.XmlReflectionImporterType, new object[] { defaultNs });
 }
Example #3
0
 public XmlMemberMapping(object o)
 {
     _wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(o);
 }
Example #4
0
 public XmlReflectionMember()
 {
     _wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(XmlMappingTypesHelper.XmlReflectionMemberType);
 }
Example #5
0
 public XmlMapping(object thisObject)
 {
     this._wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(thisObject);
 }