Hidden among the To(integral-type) methods are overloads that parse numbers in another base : Convert : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » Convert »

 

Hidden among the To(integral-type) methods are overloads that parse numbers in another base








    
 

using System;
public class MainClass {
    public static void Main() {

        int thirty = Convert.ToInt32("1E", 16);      // parse in hexadecimal
        uint five = Convert.ToUInt32("101", 2);      // parse in binary

    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» Convert