protected XPathBehaviorAccessor(Type type, IXmlContext context) : base(type, context) { includedTypes = new XmlIncludedTypeSet(); foreach (var includedType in context.GetIncludedTypes(ClrType)) { includedTypes.Add(includedType); } }
private void ProcessPendingIncludes() { var clrTypes = pendingIncludes; pendingIncludes = null; if (clrTypes == null) { return; } foreach (var clrType in clrTypes) { var xsiType = GetDefaultXsiType(clrType); var includedType = new XmlIncludedType(xsiType, clrType); includedTypes.Add(includedType); } }