示例#1
0
        protected XPathBehaviorAccessor(Type type, IXmlContext context)
            : base(type, context)
        {
            includedTypes = new XmlIncludedTypeSet();

            foreach (var includedType in context.GetIncludedTypes(ClrType))
            {
                includedTypes.Add(includedType);
            }
        }
示例#2
0
        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);
            }
        }