I hate this shit...
Sep. 20th, 2004 04:01 pmnext “probably a good idea” clean‑up: changing all the
I’m actually slurring my speech. I think that means I should go to bed.
int.Parse( object.ToString() )s to Convert.ToInt32( object ), and similar conversions. likewise, changing all the C‑style (type)object to Convert.ToType( object ).I’m actually slurring my speech. I think that means I should go to bed.
no subject
Date: 2004-09-20 11:19 pm (UTC)This is interesting - are you making a program from scratch?
no subject
Date: 2004-09-21 03:36 am (UTC)I also don't understand the benefit of not using C-style casts in C#. Does it provide some sort of optimization?
no subject
Date: 2004-09-21 07:58 am (UTC)ToString()method to get a string to pass toint.Parse(), rather than simply passing the object toConvert.ToInt32()—and if I look at all of them, I get to see whether they’re actually needed.That, and it’s just easier to search for
Convert.ToType().no subject
Date: 2004-09-21 08:03 am (UTC)