Get the Custom Properties values in Taxonomy Terms in SharePoint 2013

Open console project in visual studio 2013.
Set the the project plat form target as 64 bit  in project properties > Build > Platform target 
 
Add below references.
 
Microsoft.SharePoint.dll
Microsoft.SharePoint.Taxonomy.dll
  1. using Microsoft.SharePoint;  
  2. using Microsoft.SharePoint.Taxonomy;  
  3.    
  4. class Program  
  5. {  
  6.    static void Main(string[] args)  
  7.    {  
  8.       using (SPSite site = new SPSite("http://XXXXXXX"))  
  9.       {  
  10.          using (SPWeb web = site.OpenWeb())  
  11.          {  
  12.             ///Term set as SharedProperty Name //it should be in Term Set  
  13.             string  assingTermSet = "";  
  14.             TaxonomySession taxonomySession = new TaxonomySession(site);  
  15.             TermStore termStore = taxonomySession.TermStores["mmservicename"];  
  16.             Group group = termStore.Groups["GroupName"];  
  17.             TermSet termSet = group.TermSets["Where The Term Get Assigend-TermSetName"];  
  18.             foreach (Term subProduct in termSet.Terms)  
  19.             {  
  20.                           
  21.                 subProduct.CustomProperties.TryGetValue("assingTermSet"out assingTermSet);  
  22.   
  23.                 Console.WriteLine(subProduct.Name);  
  24.                 Console.WriteLine(assingTermSet);  
  25.                 Console.WriteLine("---------------");  
  26.   
  27.             }  
  28.   
  29.             Console.ReadLine();  
  30.                                           
  31.          }  
  32.       }  
  33.    }  
  34. }