Add default site columns to list using Client Object Model

Below code describes how to add site columns from site to SharePoint list. Add reference “Microsoft.sharepoint.client.dll” and “Microsoft.sharepoint.client.Runtime.dll”. Write Below Code. class Program { static void Main(string[] args) { string listName = “New List”; using (ClientContext context = new ClientContext(“siteUrl”)) { context.Credentials = new System.Net.NetworkCredential(“UserName”, “Password”); //Apply Credential Web web = context.Web; context.Load(web, w => w.AvailableFields, w => w.Lists); List […]