c# IDictionaryEnumerator

sedang Berlangsung Dipasang 7 tahun yang lalu Dibayar saat pengiriman
sedang Berlangsung Dibayar saat pengiriman

I have a class that loops through an idictionary and removes some items. The problem is it is throwing exceptions because it is also being altered at the same time items are being removed. I need someone to give me the best case solution. You should be able to change this without actually running any code. I just need the best practice example. Thanks and good luck.

Pemrograman C#

ID Proyek: #10553966

Tentang proyek

15 proposal Proyek online Aktif 7 tahun yang lalu

Diberikan kepada:

vahidtavana

You can't modify the collection you are enumerating. Simply make a second collection using ToArray() or ToList() before you enumerate. foreach(var item in [login to view URL]()) { if([login to view URL]) Lebih banyak

$25 USD dalam 1 hari
(7 Ulasan)
5.2

15 freelancer rata-rata menawar $25 untuk pekerjaan ini

logos104

Hi. I have about 15 years of programming experience. Mostly I used C, C++ and C# for my projects development. I can help with the task.

$25 USD dalam 1 hari
(50 Ulasan)
5.3
jackvu2612

Hi, I have 5+ years of object-oriented architecture designing, programming and administration experience with success devising software solutions to meet business requirements. - Full-stack developer with C#.NET, MVC Lebih banyak

$30 USD dalam 2 hari
(14 Ulasan)
3.7
pakaimsolutions

Hello, I hope you doing very well! I have gone through the description and would like to provide a quality solution using my 5+ years of professional experience in required skills. (.NET/ASP.NET - MVC, EF, SQL, C#). Lebih banyak

$25 USD dalam 1 hari
(5 Ulasan)
2.9
vkriate

Hi, I am ready to start the project as soon as you hire me. Please visit my profile for more details. Please click on the link to view my profile: http://www.freelancer.in/u/vkriate.html Awaiting your reply. Lebih banyak

$20 USD dalam 0 hari
(5 Ulasan)
2.8
sureshjatlx

I have 9 years of experience of developing professional and high-end business solutions. I assure you to give you highly qualitative, timely delivered and cost-effective software development. I'll appreciate your consi Lebih banyak

$25 USD dalam 1 hari
(1 Ulasan)
2.3
sheikDev

Hello, Im interested to help you on this. May i know you using for or foreach in the function. Also Can you share the code snippet for my understanding. I will help you right away. Thanks for your message. Lebih banyak

$20 USD dalam 1 hari
(4 Ulasan)
2.4
NovaSofts

Hello Sir/Mam NovaSofts Inc. is the leading IT Company of Islamabad Pakistan. We have 9+ years of experience and strong knowledge about programming languages Java C++ C C# Android So you don't worry about thir Lebih banyak

$30 USD dalam 1 hari
(1 Ulasan)
1.2
Deenario

Its a small Logical error . u just have to close your code with an If statement . that will separate your code from throwing Exception. Its an easy program . Easy logic. i can make it work. Kindly send me a message Lebih banyak

$25 USD dalam 1 hari
(1 Ulasan)
1.2
maxtb2

I could connect through your teamviewer and help you solve the exception as well as to explain to you how the solution works. Best regards, Maixm.

$45 USD dalam 1 hari
(0 Ulasan)
0.0
MohsanEijaz

It is my great honor to apply for this vacant job. I am very hardworking and can work effectively as fast as I can. I have excellent skills in C++, OPPs, HTML5, CSS3, JS, AJAX, JQYERY, React.js, ANGULAR.JS, BACKBONE.JS Lebih banyak

$10 USD dalam 1 hari
(0 Ulasan)
0.0
CsharpSpecialist

Hey I usually don't take in work without actually being able to run it first. But if you send me the part of code I can have a look at it.

$20 USD dalam 1 hari
(0 Ulasan)
0.0
kev001

I am good with advanced C# & CLR related programs, also have done good understanding on .net open source code.

$20 USD dalam 2 hari
(0 Ulasan)
0.0