We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello I ve got this exception "collection was modified; enumeration operation may not execute" during service initialisation.
It is thrown in Oddr.Builders.Devices.TwoStepDeviceBuilder.AfterOrderingCompleteInit after the first call of SortElement(step1Token);
foreach (String step1Token in orderedRules.Keys) { SortElement(step1Token); }
This exception was thrown because SortElement modifies orderedRules.Keys collection.
To solve the issue, I changed the code by :
String[] stringKeys = new String[orderedRules.Keys.Count]; orderedRules.Keys.CopyTo(stringKeys, 0); foreach (String step1Token in stringKeys) { SortElement(step1Token); }
The text was updated successfully, but these errors were encountered:
Thanks, would you be able to create a Pull Request for it?
Sorry, something went wrong.
No branches or pull requests
Hello
I ve got this exception "collection was modified; enumeration operation may not execute" during service initialisation.
It is thrown in Oddr.Builders.Devices.TwoStepDeviceBuilder.AfterOrderingCompleteInit after the first call of SortElement(step1Token);
This exception was thrown because SortElement modifies orderedRules.Keys collection.
To solve the issue, I changed the code by :
The text was updated successfully, but these errors were encountered: