public IGesture GetNewestGestureSample(string gestureName) { return(String.IsNullOrEmpty(gestureName) ? null : Gestures.LastOrDefault(g => String.Equals(g.Name, gestureName, StringComparison.Ordinal))); }
public IGesture GetNewestGestureSample(string GestureName) { return(Gestures.LastOrDefault(g => g.Name.ToLower() == GestureName.Trim().ToLower())); }