/// <summary>
 /// Adds a capability to the query result to be returned.
 /// </summary>
 /// <param name="cap"></param>
 public void AddCapability(ItemCapability cap)
 {
     List<ItemCapability> retcap;
     if (returnedCapabilities == null || returnedCapabilities.Length == 0)
         retcap = new List<ItemCapability>();
     else
         retcap = returnedCapabilities.ToList();
     retcap.Add(cap);
     returnedCapabilities = retcap.ToArray();
 }
 public void AddCapability(ItemCapability cap)
 {
     capabilities.Add(cap.capabilityName, cap);
     cap.owner = this;
 }
 /// <summary>
 /// Adds a capability to the query result to be returned.
 /// </summary>
 /// <param name="cap"></param>
 public void AddCapability(ItemCapability cap)
 {
     List<ItemCapability> retcap;
     if (returnedCapabilities == null || returnedCapabilities.Length == 0)
         retcap = new List<ItemCapability>();
     else
         retcap = returnedCapabilities.ToList();
     retcap.Add(cap);
     returnedCapabilities = retcap.ToArray();
 }