Example #1
0
        public XmlArrayBehaviorAccessor(string name, Type type, IXmlContext context)
            : base(name, type, context)
        {
            if (Serializer.Kind != XmlTypeKind.Collection)
            {
                throw Error.AttributeConflict(name);
            }

            itemAccessor = new ItemAccessor(ClrType.GetCollectionItemType(), this);
        }