/// <summary> /// Searches for an using directive and returns zero-based index of the last occurrence in the list. /// </summary> /// <param name="usingDirective"></param> /// <returns></returns> public int LastIndexOf(UsingDirectiveSyntax usingDirective) { return(Usings.LastIndexOf(usingDirective)); }
/// <summary> /// Searches for an using directive that matches the predicate and returns returns zero-based index of the last occurrence in the list. /// </summary> /// <param name="predicate"></param> /// <returns></returns> public int LastIndexOf(Func <UsingDirectiveSyntax, bool> predicate) { return(Usings.LastIndexOf(predicate)); }