/// <summary> /// Creates a new <see cref="UsingDirectiveListInfo"/> with the using directive at the specified index replaced with a new using directive. /// </summary> /// <param name="index"></param> /// <param name="newUsingDirective"></param> /// <returns></returns> public UsingDirectiveListInfo ReplaceAt(int index, UsingDirectiveSyntax newUsingDirective) { return(WithUsings(Usings.ReplaceAt(index, newUsingDirective))); }