Esempio n. 1
0
 /// <summary>
 /// Searches the internal list of Observers to find a match to the given name. The match is partial and the name
 /// does not have to be exact. The first found instance will be returned.
 /// </summary>
 /// <param name="partialName">String that should be matched to the name string of the observer.</param>
 /// <returns>The first matching observer. If no match is found then an exception will be thrown.</returns>
 public Observer GetObserverByPartialName(string partialName)
 {
     return(Observers.Find(delegate(Observer obs)
     {
         return obs.Name.Contains(partialName);
     }));
 }