예제) 내장 데이터 형식 메소드

 

 

using System;

class DataType

{

     public static void Main()

     {

          int i = 100;

          Syetem.Int32 j = 100;

 

          Console.WriteLine("Type?:{0}",i.GetType()); 

          Console.WriteLine(“HashCode?:{0}",i.GetHashCode());

          Console.WriteLine("ToString?:{0}",i.ToString());

          Console.WriteLine(“i=j?{0}",i.Equals(j));

          Console.WriteLine(“Type Of 100:{0}",100.GetType());

     }

}

 

 

 

 

+ Recent posts