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("Добавлять можно только в объекты открытого типа!"); }
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; }
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; }