I am trying to create fields of type double in my code. To do this I used Geoprocessing.ExecuteToolAsync("AddField_management", Geoprocessing.MakeValueArray(featureclass, fieldname, type)). I do this for type double. Then I use calculate field to populate those new fields. For some reason, it works fine on file geodatabase classes, however, when I try this on shapefile feature classes it says the new fields are type text which messes up the whole program. Why is it working for some but not others? Would it be a problem with how I added the fields or something else?