GitHub PullRequestReviewCommentEvent at 2014-04-22 02:31:58
Repository: ImmutableObjectGraph
Actor: IanYates
Payload: {"comment":{"url":"https://api.github.com/repos/AArnott/ImmutableObjectGraph/pulls/comments/11836078","id":11836078,"diff_hunk":"@@ -27,6 +27,34 @@ public <#= templateType.TypeName #> Add<#= field.NamePascalCase #>(<#= field.Ele\n \treturn this.With(<#= field.NameCamelCase #>: this.<#=field.NamePascalCase#>.Add(value));\n }\n \n+/// <summary>Clears all elements from the <#= field.NamePascalCase #> collection.</summary>\n+public <#= templateType.TypeName #> Remove<#= field.NamePascalCase #>() {\n+\treturn this.With(<#= field.NameCamelCase #>: this.<#=field.NamePascalCase#>.Clear());\n+}\n+<#\n+\t\tif (field.IsDictionary) {\n+#>\n+/// <summary>Adds the specified element from the <#= field.NamePascalCase #> collection.</summary>\n+public <#= templateType.TypeName #> Add<#= field.NamePascalCase #>(<#= field.KeyTypeName #> key, <#= field.ValueTypeName #> value) {\n+\treturn this.With(<#= field.NameCamelCase #>: this.<#=field.NamePascalCase#>.Add(key, value));\n+}\n+\n+public <#= templateType.TypeName #> Remove<#= field.NamePascalCase #>(<#= field.KeyTypeName #> key) {\n+\treturn this.With(<#= field.NameCamelCase #>: this.<#=field.NamePascalCase#>.Remove(key));\n+}\n+\n+public <#= templateType.TypeName #> Remove<#= field.NamePascalCase #>(System.Collections.Generic.IEnumerable<<#= field.KeyTypeName #>> keys) {\n+\treturn this.With(<#= field.NameCamelCase #>: this.<#=field.NamePascalCase#>.RemoveRange(keys));\n+}\n+\n+public <#= templateType.TypeName #> Remove<#= field.NamePascalCase #>(params <#= field.KeyTypeName #>[] keys) {\n+\treturn this.With(<#= field.NameCamelCase #>: this.<#=field.NamePascalCase#>.RemoveRange(keys));\n+}\n+","path":"ImmutableObjectGraph/ImmutableObjectGraph.CollectionHelpers.tt","position":27,"original_position":27,"commit_id":"5b1eef988711a37e9398fdde711bb0749584ab90","original_commit_id":"5b1eef988711a37e9398fdde711bb0749584ab90","user":{"login":"IanYates","id":1314477,"avatar_url":"https://avatars.githubusercontent.com/u/1314477?","gravatar_id":"4dc91351eb1c3391bdba4455d2a24dcc","url":"https://api.github.com/users/IanYates","html_url":"https://github.com/IanYates","followers_url":"https://api.github.com/users/IanYates/followers","following_url":"https://api.github.com/users/IanYates/following{/other_user}","gists_url":"https://api.github.com/users/IanYates/gists{/gist_id}","starred_url":"https://api.github.com/users/IanYates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IanYates/subscriptions","organizations_url":"https://api.github.com/users/IanYates/orgs","repos_url":"https://api.github.com/users/IanYates/repos","events_url":"https://api.github.com/users/IanYates/events{/privacy}","received_events_url":"https://api.github.com/users/IanYates/received_events","type":"User","site_admin":false},"body":"    public <#=  templateType.TypeName #> Set<#=field.NamePascalCase #>(<#= field.KeyTypeName #> key, <#= field.ValueTypeName #> value) {\r\n    \treturn this.With(<#= field.NameCamelCase #>: this.<#=field.NamePascalCase#>.SetItem(key, value));\r\n    }\r\n\r\n    public <#= templateType.TypeName #> Set<#= field.NamePascalCase #>(System.Collections.Generic.IEnumerable<<#= field.ElementTypeName #>> values) {\r\n    \treturn this.With(<#= field.NameCamelCase #>: this.<#=field.NamePascalCase#>.SetItems(values));\r\n    }\r\n\r\n\r\n    public <#= templateType.TypeName #> Set<#= field.NamePascalCase #>(params <#= field.ElementTypeName #>[] values) {\r\n    \treturn this.With(<#= field.NameCamelCase #>: this.<#=field.NamePascalCase#>.SetItems(values));\r\n    }\r\n\r\n","created_at":"2014-04-22T02:31:58Z","updated_at":"2014-04-22T02:31:58Z","html_url":"https://github.com/AArnott/ImmutableObjectGraph/pull/24#discussion_r11836078","pull_request_url":"https://api.github.com/repos/AArnott/ImmutableObjectGraph/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/AArnott/ImmutableObjectGraph/pulls/comments/11836078"},"html":{"href":"https://github.com/AArnott/ImmutableObjectGraph/pull/24#discussion_r11836078"},"pull_request":{"href":"https://api.github.com/repos/AArnott/ImmutableObjectGraph/pulls/24"}}}}