title: Check which field type a column belongs to programmatically in SharePoint
body: <p>How can we check what is the field type of a column through code? For example, I know "Country" is one column in SharePoint and I am accessing it, but I don't know its type. If there is any way I can check it programmatically and then perform an action, for example if it is a Lookup Field, then if I want its value, i need to do...
  lookupvalue country ...or if it's a Text Field, I can simply get its value as string.</p>
  
  <p>Any idea how to get the field type?</p>
  
  <p>Thanks.</p>