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
Post a Comment