[WebMethod] public static object LoadData(NameValue[] dtdata) { // Creating a dynamic dictionary. dynamic dt = new DynamicDictionary(); foreach (var value1 in dtdata) { var key = value1.name; dt.key = value1.value; // this is error //should be something like dt.Firstname, I need to loop around each parameter and create the same as property } return dt; }
System.CodeDom
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)