public MethodSpecTreeNode(MethodSpecDeclaration method) : base(method, TreeViewImage.Method) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append('<'); bool first = true; foreach (ITypeSignature type in method.GenericArguments) { if (!first) { stringBuilder.Append(", "); } else { first = true; } stringBuilder.Append(type.ToString()); } stringBuilder.Append('>'); this.Text = stringBuilder.ToString(); }
public MethodSpecTreeNode( MethodSpecDeclaration method ) : base( method, TreeViewImage.Method ) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append( '<' ); bool first = true; foreach ( ITypeSignature type in method.GenericArguments ) { if ( !first ) { stringBuilder.Append( ", " ); } else { first = true; } stringBuilder.Append( type.ToString() ); } stringBuilder.Append( '>' ); this.Text = stringBuilder.ToString(); }