Вы можете использовать ExpandoObject для создания.
Обновлено Мой ответ с кодом:
public object createDynamicObjectWithProperty(string fields)
{
var reqFields=fields.split(',');
dynamic returnObj = new ExpandoObject();
foreach(var propertiesName in reqFields)
{
AddProperty(returnObj,propertiesName,string.empty);
}
return returnObj ;
}
public static void AddProperty(ExpandoObject expando, string propertyName, object propertyValue)
{
//Take use of the IDictionary implementation
var expandoDict = expando as IDictionary;
if (expandoDict.ContainsKey(propertyName))
expandoDict[propertyName] = propertyValue;
else
expandoDict.Add(propertyName, propertyValue);
}