asp.net - Can I assign values from my collection in a string array..?? (c#) -


i trying values name value collection , trying store in string array

for (int i=0; i<arr.length; i++) {     arr[i] = datarowcoll.getvalue[i]; } 

datarow.coll namevaluecollection. giving error reference without parentheses, can assign values collection in string array..??

getvalue not member of namevaluecollection. function called get. if want use [] operator, don't have call get function. call

arr[i] = datarowcoll[i]; 

or:

arr[i] = datarowcoll.get(i); 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -