Cannot convert type System.Collections.Generic.KeyValuePair<string,string>' to System.Collections.DictionaryEntry' #40

Open
opened 2015-05-24 07:28:03 -07:00 by middleJack · 0 comments
middleJack commented 2015-05-24 07:28:03 -07:00 (Migrated from github.com)

Assets/Plugins/UnityHTTP-master/src/Request.cs(80,13): error CS0030: Cannot convert type System.Collections.Generic.KeyValuePair<string,string>' toSystem.Collections.DictionaryEntry'

Fixed it by replacing:
foreach ( DictionaryEntry entry in form.headers )

for:
foreach ( KeyValuePair<string, string> entry in form.headers )

BTW: Why is this library overwriting JSON class?

Assets/Plugins/UnityHTTP-master/src/Request.cs(80,13): error CS0030: Cannot convert type `System.Collections.Generic.KeyValuePair<string,string>' to`System.Collections.DictionaryEntry' Fixed it by replacing: `foreach ( DictionaryEntry entry in form.headers )` for: `foreach ( KeyValuePair<string, string> entry in form.headers )` BTW: Why is this library overwriting JSON class?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
andyburke/UnityHTTP#40
No description provided.