Exemple #1
0
        public void Add(XmlFormEnum form, string namespaceUri, string localName, IXdtoValue dataElement)
        {
            if (_type?.Open ?? true)
            {
                var customProperty = new XdtoProperty(null, this, form, namespaceUri, localName);
                Add(customProperty, dataElement);
            }

            throw new RuntimeException("Добавлять можно только в объекты открытого типа!");
        }
Exemple #2
0
 internal XdtoProperty(XmlFormEnum form,
                       string namespaceUri,
                       string localName,
                       IXdtoType type = null)
 {
     NamespaceURI = namespaceUri;
     LocalName    = localName;
     Name         = localName;
     Form         = form;
     LowerBound   = 1;
     UpperBound   = 1;
     _type        = type;
 }
Exemple #3
0
 internal XdtoProperty(IXdtoType ownerType, XdtoDataObject ownerObject,
                       XmlFormEnum form,
                       string namespaceUri,
                       string localName,
                       int lowerBound = 1,
                       int upperBound = 1,
                       IXdtoType type = null)
 {
     NamespaceURI = namespaceUri;
     LocalName    = localName;
     Name         = localName;
     Form         = form;
     _ownerType   = ownerType;
     OwnerObject  = ownerObject;
     LowerBound   = lowerBound;
     UpperBound   = upperBound;
     _type        = type;
 }