Cybercrux

Everything is achievable through technology

List Tips

call a list with [“value”] like

dataTypeFieldTypeMap[“text”];

Dictionary<string, FieldType> dataTypeFieldTypeMap = new Dictionary<string, FieldType>
{
{ “text”, fieldTypeString },
{ “date”, new FieldType(typeof(DateTime)) },
{ “numeric”, new FieldType(typeof(int)) },
{ “boolean”, new FieldType(typeof(bool)) }
};

 

Leave a comment