C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 235 Page Views: 

How do you format integer to output hexadecimal value?



Posted By: Avi Date: 13 October 2010 01:32:46 PM
 Answer:

String.Format(“{0:x}”, 100);


Posted By: avibtech


Date: 13 October 2010 01:32:46 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image QQ9hit
Related Questions
C# : What will be the result of this code:
Console.WriteLine(1==0?”true” : “false”);

What will be the result of this code: Console.WriteLine(1==0?”true” : “false”);

false on output screen
Category: C# Date: 10/14/2010 10:20:31 AM
C# : How do you define partial method?

How do you define partial method?

partial void M(); //in file1.cs Partial void M() { } //in file2.cs
Category: C# Date: 10/14/2010 10:15:46 AM
C# : What will be the result of the following code:
class T {public int A;}
Static void Main(string[] args)
{
T a = new T();
a.A = 10;
T b = a;
a.A = 1;
Console.WriteLine(a.A == b.A);
}
C# : How do download a web page from c#?

How do download a web page from c#?

use HttpWebRequest object to obtain WebResponse object and response stream from it.
Category: C# Date: 10/14/2010 9:53:31 AM
C# : How do you subscribe to the event?

How do you subscribe to the event?

this.Load += new System.EventHandler(this.Form1_Load);
Category: C# Date: 10/14/2010 9:30:14 AM