public ItemAccessor(XmlNodeAccessor parent)
     : base(parent.ClrType.GetCollectionItemType(), parent.Context)
 {
     ConfigureLocalName(parent.Name.LocalName);
     ConfigureNamespaceUri(parent.Name.NamespaceUri);
     ConfigureNillable(parent.IsNillable);
     ConfigureReference(parent.IsReference);
     ConfigureKnownTypesFromParent(parent);
 }
Exemplo n.º 2
0
        protected void ConfigureKnownTypesFromParent(XmlNodeAccessor accessor)
        {
            if (knownTypes != null)
            {
                throw Error.AttributeConflict(localName);
            }

            knownTypes = accessor.knownTypes;
        }
Exemplo n.º 3
0
 public ItemAccessor(Type itemClrType, XmlNodeAccessor accessor)
     : base(itemClrType, accessor.Context)
 {
     ConfigureNillable(true);
     ConfigureReference(accessor.IsReference);
 }