Namespaces:
Code
using Microsoft.SharePoint.Client;
Assemblies:
Code
Microsoft.SharePoint.Client.dll;
Microsoft.SharePoint.Client.RunTime.dll;
Code Snippet:

C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint.Client;

namespace GetContentTypes
{
    class Program
    {
        static void Main(string[] args)
        {
            //// String Variable to store the siteURL
            string siteURL = "http://c4968397007/";

            //// Get the context for the SharePoint Site to access the data
            ClientContext clientContext = new ClientContext(siteURL);

            //// Get the content type collection from the website
            ContentTypeCollection contentTypeColl = clientContext.Web.ContentTypes;
            clientContext.Load(contentTypeColl);
            clientContext.ExecuteQuery();

            //// Display the content type names that are available in the website
            foreach (ContentType ct in contentTypeColl)
            {
                Console.WriteLine(ct.Name);
            }            
            Console.ReadLine();
        }
    }
}