예제 #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);
        }
예제 #2
0
 public XmlReflectionImporter(string defaultNs)
 {
     _wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(XmlMappingTypesHelper.XmlReflectionImporterType, new object[] { defaultNs });
 }
예제 #3
0
 public XmlMemberMapping(object o)
 {
     _wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(o);
 }
예제 #4
0
 public XmlReflectionMember()
 {
     _wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(XmlMappingTypesHelper.XmlReflectionMemberType);
 }
예제 #5
0
 public XmlMapping(object thisObject)
 {
     this._wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(thisObject);
 }
예제 #6
0
 public XmlReflectionImporter(string defaultNs)
 {
     _wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(XmlMappingTypesHelper.XmlReflectionImporterType, new object[] { defaultNs });
 }
예제 #7
0
 public XmlReflectionMember()
 {
     _wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(XmlMappingTypesHelper.XmlReflectionMemberType);
 }
예제 #8
0
 public XmlMemberMapping(object o)
 {
     _wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(o);
 }
예제 #9
0
 public XmlMapping(object thisObject)
 {
     this._wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(thisObject);
 }