/// <summary>
 /// Gets the item value from the items array.
 /// This method makes the combination between ItemsElementName and Items array
 /// to the get value.
 /// </summary>
 /// <param name="itemName">Name of the item.</param>
 /// <returns></returns>
 public Object GetItemValue(fileeffectiverights_object_ItemsChoices itemName)
 {
     for (int i = 0; i <= this.FileeffectiverightsObjectItemsElementName.Count() - 1; i++)
     {
         if (this.FileeffectiverightsObjectItemsElementName[i] == itemName)
         {
             return this.Items[i];
         }
     }
     return null;
 }
Example #2
0
 /// <summary>
 /// Gets the item value from the items array.
 /// This method makes the combination between ItemsElementName and Items array
 /// to the get value.
 /// </summary>
 /// <param name="itemName">Name of the item.</param>
 /// <returns></returns>
 public Object GetItemValue(fileeffectiverights_object_ItemsChoices itemName)
 {
     for (int i = 0; i <= this.FileeffectiverightsObjectItemsElementName.Count() - 1; i++)
     {
         if (this.FileeffectiverightsObjectItemsElementName[i] == itemName)
         {
             return(this.Items[i]);
         }
     }
     return(null);
 }
 private IEnumerable<string> processVariablesFromEntity(fileeffectiverights_object fileEffectiveRights,fileeffectiverights_object_ItemsChoices itemChoice)
 {
     List<string> values = new List<string>();
     EntityObjectStringType entity = (EntityObjectStringType)fileEffectiveRights.GetItemValue(itemChoice);
     if (entity != null)
     {
         values.AddRange(this.processVariableForEntity(entity));
     }
     return values;
 }
Example #4
0
        private IEnumerable <string> processVariablesFromEntity(fileeffectiverights_object fileEffectiveRights, fileeffectiverights_object_ItemsChoices itemChoice)
        {
            List <string>          values = new List <string>();
            EntityObjectStringType entity = (EntityObjectStringType)fileEffectiveRights.GetItemValue(itemChoice);

            if (entity != null)
            {
                values.AddRange(this.processVariableForEntity(entity));
            }
            return(values);
        }