Example #1
0
 /// <summary>Get the items matching the given ID.</summary>
 /// <param name="id">The category or item ID.</param>
 private IEnumerable <SObject> GetItems(int id)
 {
     return(id < 0
         ? ObjectUtility.GetObjectsInCategory(id)
         : new[] { new SObject(id, 1) });
 }