BindaTests.Extensions.GetNodeCommentByAuthor C# (CSharp) Method

GetNodeCommentByAuthor() public static method

public static GetNodeCommentByAuthor ( this nodes, string author ) : TreeNode
nodes this
author string
return System.Windows.Forms.TreeNode
        public static TreeNode GetNodeCommentByAuthor(this IEnumerable<TreeNode> nodes, string author)
        {
            return nodes.Single(x => (x.Tag as Comment).Author == author);
        }