Error - "Cannot convert from 'int' to 'System.IFormatProvider'."

Posted by Allemahesh under ASP.NET on 7/11/2013 | Points: 10 | Views : 2773 | Status : [Member] [MVP] | Replies : 1
I am converting data to binary format.
string _binary = Convert.ToString(_data, 2);
Link : http://snipplr.com/view/2401/

But I am getting the error as "Cannot convert from 'int' to 'System.IFormatProvider'".
Can any one help me.




Responses

Posted by: Allemahesh on: 7/11/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Finlay I got the solution.
string _binary = Convert.ToString(Convert.ToInt32(_data), 2);

Allemahesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response