Esempio n. 1
0
 public ContractorAttrValue this[ContractorFieldName fieldName]
 {
     get
     {
         return(this.Children.Where(c => c.ContractorFieldName == fieldName).FirstOrDefault());
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Recursively creates new children (BusinessObjects) and attaches them to proper xml elements.
        /// </summary>
        /// <param name="element">Xml element to attach.</param>
        public override void Deserialize(XElement element)
        {
            base.Deserialize(element);

            this.contractorFieldName = DictionaryMapper.Instance.GetContractorField(this.ContractorFieldId).TypeName;
        }