Example #1
0
    public IndexedClip GetSong(string Id)
    {
        IndexedClip retVal = null;

        this.songsDictionary.TryGetValue(Id, out retVal);
        return(retVal);
    }
 public bool TryGetValue(string name, out IndexedClip clip)
 {
     for (int i = 0; i < this.clips.Count; i++)
     {
         var c = clips[i];
         if (c.Name.Equals(name))
         {
             clip = new IndexedClip(i, c);
             return(true);
         }
     }
     clip = new IndexedClip(-1, null);
     return(false);
 }