Console Application with Some new Features in VS 2015 RC

I have create one console application with some new features in vs2015.Here I have used
 
1. Using static:( Accessible all static members)
 
Example
  1. using static System.Math; 
2. Expression bodies on method-like members 
 
Please find the below code:
  1. using System;  
  2. //Using static  
  3. using static System.Math;  
  4. namespace ConsoleApplication1 {  
  5.     class Program {  
  6.         static void Main(string[] args) {  
  7.             Program obj = new Program();  
  8.             //Console.WriteLine(obj.GetSqrt(3));  
  9.             Console.WriteLine(obj.GetString());  
  10.             Console.ReadLine();  
  11.         }  
  12.         public string X = "Hi";  
  13.         public string Y = "How";  
  14.         public Int32 FastValue = 4;  
  15.         public Int32 Secondvalue = 5;  
  16.         //Expression bodies on method-like members  
  17.         public double GetTotalValu() = > Sqrt(FastValue + Secondvalue * FastValue + Secondvalue);  
  18.         public double GetSqrt(int x) = > Sqrt(x);  
  19.         //String.format=$  
  20.         public string GetString() = > $ "({X},{Y})";  
  21.     }  



Output:
Ebook Download
View all
Learn
View all