Skip to content

Commit

Permalink
解决闭包
Browse files Browse the repository at this point in the history
  • Loading branch information
xljiulang committed Jun 11, 2021
1 parent 7eb9419 commit 40b1779
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FastGithub/IPv4CIDR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public IEnumerable<IPAddress> GetAllIPAddress()
{
for (var i = 0; i < this.Size; i++)
{
yield return Add(this.IPAddress, i);
var value = i;
yield return Add(this.IPAddress, value);
}
}

Expand Down

0 comments on commit 40b1779

Please sign in to comment.