Skip to content

Expose repeated extension field as IList #80

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
To iterate over items of a repeated extensions, one needs to do:

for (int i = 0; i < msg.GetExtensionCount(ExtId); i++)
{
  var ext = msg.GetExtension(ExtId, i);
  // use ext.
}

It would be nice if one could write:

foreach (var ext in msg.GetExtensionList(ExtId))
{
  // use ext.
}

Original issue reported on code.google.com by [email protected] on 7 Mar 2014 at 4:48

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions