Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Foo
- {
- private int FooID;
- public Foo()
- {
- FooID = 4;
- string s = (string)FooID; //throws compile error
- string sss = FooID.ToString(); //no compile error
- }
- }
- string s = (string)70;
- string s = Convert.ToString(-70, 10);
- string s2 = 70.ToString("D");
- int test1 = 34;
- double test2 = (double)test1;
- int test1 = 34;
- string test2 = (string)test1;
Add Comment
Please, Sign In to add comment