提交 d29f6998 编写于 作者: C Cyrus Najmabadi

Use collection initializer.

上级 6551c893
......@@ -72,10 +72,11 @@ private ITypeSymbol GetContainingType(IMethodSymbol method)
private IList<SymbolDisplayPart> GetPostambleParts(IMethodSymbol method, SemanticModel semanticModel, int position)
{
var result = new List<SymbolDisplayPart>();
result.Add(Punctuation(SyntaxKind.GreaterThanToken));
result.Add(Punctuation(SyntaxKind.OpenParenToken));
var result = new List<SymbolDisplayPart>
{
Punctuation(SyntaxKind.GreaterThanToken),
Punctuation(SyntaxKind.OpenParenToken)
};
var first = true;
foreach (var parameter in method.Parameters)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册