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); }
public XmlReflectionImporter(string defaultNs) { _wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(XmlMappingTypesHelper.XmlReflectionImporterType, new object[] { defaultNs }); }
public XmlMemberMapping(object o) { _wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(o); }
public XmlReflectionMember() { _wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(XmlMappingTypesHelper.XmlReflectionMemberType); }
public XmlMapping(object thisObject) { this._wrapperObject = XmlMappingTypeWrapperFactory.GetWrapper(thisObject); }