Re: Using ToString to pad an integer with leading zeroes
- From: "Jon Skeet [C# MVP]" <skeet@xxxxxxxxx>
- Date: Wed, 27 Jun 2007 05:02:08 -0700
On Jun 27, 12:50 pm, stainless <Mark.Wingfi...@xxxxxxxxx> wrote:
You will have to excuse my inexperience with C# but I cannot get the
ToString("D9") to work when debugging. The message returned is
No overload for method 'ToString' takes '1' arguments
Should I have defined something earlier in my C# to allow the "D9" as
an argument for this method?
What are you calling ToString() on?
If you're writing code in the debugger's immediate window, you may
well find it easier to write a very small test application instead (I
almost always use a console app). That way you're isolated from any
differences between the debugger and "normal" code.
Jon
.
- Follow-Ups:
- Re: Using ToString to pad an integer with leading zeroes
- From: stainless
- Re: Using ToString to pad an integer with leading zeroes
- References:
- Using ToString to pad an integer with leading zeroes
- From: stainless
- Re: Using ToString to pad an integer with leading zeroes
- From: Jon Skeet [C# MVP]
- Re: Using ToString to pad an integer with leading zeroes
- From: stainless
- Re: Using ToString to pad an integer with leading zeroes
- From: stainless
- Using ToString to pad an integer with leading zeroes
- Prev by Date: Re: inherit form and generics
- Next by Date: Re: virtual printer driver for PDF
- Previous by thread: Re: Using ToString to pad an integer with leading zeroes
- Next by thread: Re: Using ToString to pad an integer with leading zeroes
- Index(es):
Relevant Pages
|