Skip to content

Fix ambiguous naming issues when consumed by VB.NET - #11

Merged
aidanbebbington merged 3 commits into
twcclegg:masterfrom
mauricio-morales:master
Aug 6, 2016
Merged

Fix ambiguous naming issues when consumed by VB.NET#11
aidanbebbington merged 3 commits into
twcclegg:masterfrom
mauricio-morales:master

Conversation

@mauricio-morales

Copy link
Copy Markdown
Contributor

This Pull Request fixes Issue #10.
Protobuf generation introduces the issue despite my changes to the script calls. Additionally, the cleanprotobuf.py needs some love since it failed on my local python engine (v3.0.1).

Evidently I'm also adding a .NET .gitignore.

@aidanbebbington
aidanbebbington merged commit 7b5fad4 into twcclegg:master Aug 6, 2016
@aidanbebbington

Copy link
Copy Markdown
Collaborator

Thanks for that, sorry it's taken so long to put in there - it's up on nuget.com now.

twcclegg added a commit that referenced this pull request Aug 26, 2026
…ineGeocoder

MetadataFilter.cs:
- ComputeComplement's two filter-and-collect loops rewritten with
  .Where() (cs/linq/missed-where, alerts #10/#11).
- ShouldDrop: TryGetValue instead of ContainsKey+indexer, avoiding the
  double dictionary lookup (cs/inefficient-containskey, alert #25).

PhoneNumberOfflineGeocoder.cs: GetCountryNameForNumber's loop wasn't a
pure filter (it early-returns once a *second* valid region turns up),
so a naive .Where().ToList() would lose that short-circuit and
evaluate IsValidNumberForRegion for every remaining region needlessly.
.Where().Take(2) preserves the same lazy stopping point while still
expressing the filter explicitly (cs/linq/missed-where, alert #12).

Left PrefixFileReader.cs's LoadFileNamesFromManifestResources alone
(cs/linq/missed-select, alert #15): it's a multi-step parse with three
early-continue guard clauses and dictionary mutation, not a pure map;
forcing it into .Select() would reduce clarity, not improve it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants