Click here to Skip to main content
15,921,841 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questionset up project Pin
hrishiS31-Jan-09 2:10
hrishiS31-Jan-09 2:10 
Question[Message Deleted] Pin
svt gdwl30-Jan-09 23:11
svt gdwl30-Jan-09 23:11 
AnswerCross-post Pin
Wendelius30-Jan-09 23:33
mentorWendelius30-Jan-09 23:33 
QuestionNumber formats Pin
PIEBALDconsult30-Jan-09 16:16
mvePIEBALDconsult30-Jan-09 16:16 
AnswerRe: Number formats Pin
Wendelius30-Jan-09 23:56
mentorWendelius30-Jan-09 23:56 
GeneralRe: Number formats Pin
PIEBALDconsult31-Jan-09 3:48
mvePIEBALDconsult31-Jan-09 3:48 
GeneralRe: Number formats Pin
Wendelius31-Jan-09 4:05
mentorWendelius31-Jan-09 4:05 
GeneralRe: Number formats Pin
PIEBALDconsult31-Jan-09 5:33
mvePIEBALDconsult31-Jan-09 5:33 
Mika Wendelius wrote:
I read the format typically from database


For this utility I'll get it via XML file, but the user who creates the file should be able to specify what he wants without knowing much about the internal plumbing.


An added bonus to how I envision working around this problem responding pro-actively to this opportunity is that I can allow multiple sub-formats in the format.
With string.Format I can use "{0:X4}={0}" to format the same value into the output twice, but ToString doesn't seem to support that on its own: 20.ToString ( "X4'='0" ) results in X4=20.
But if I pre-process the format, I can add support that I feel ToString should have; split the format into { "X4" , "'='" , "0" }, then iterate and if the sub-format is literal text, output it (Append to a StringBuilder), otherwise pass the sub-format to ToString and output the result.

The resultant process should then better match how I understand ToString should work with custom numeric formats.
GeneralRe: Number formats Pin
Wendelius31-Jan-09 6:01
mentorWendelius31-Jan-09 6:01 
GeneralRe: Number formats Pin
PIEBALDconsult31-Jan-09 11:18
mvePIEBALDconsult31-Jan-09 11:18 
GeneralRe: Number formats Pin
Wendelius31-Jan-09 11:26
mentorWendelius31-Jan-09 11:26 
GeneralRe: Number formats Pin
PIEBALDconsult31-Jan-09 11:28
mvePIEBALDconsult31-Jan-09 11:28 
GeneralRe: Number formats Pin
Wendelius31-Jan-09 11:31
mentorWendelius31-Jan-09 11:31 
GeneralRe: Number formats Pin
PIEBALDconsult31-Jan-09 15:50
mvePIEBALDconsult31-Jan-09 15:50 
GeneralRe: Number formats Pin
PIEBALDconsult1-Feb-09 16:39
mvePIEBALDconsult1-Feb-09 16:39 
QuestionHooking into Visual Studio 2008 Designer drag events Pin
astibich230-Jan-09 9:55
astibich230-Jan-09 9:55 
AnswerRe: Hooking into Visual Studio 2008 Designer drag events Pin
Thomas Stockwell1-Feb-09 14:23
professionalThomas Stockwell1-Feb-09 14:23 
QuestionOwner of a file Pin
pedefetoll29-Jan-09 22:08
pedefetoll29-Jan-09 22:08 
AnswerRe: Owner of a file Pin
Dave Kreskowiak30-Jan-09 10:31
mveDave Kreskowiak30-Jan-09 10:31 
AnswerRe: Owner of a file Pin
Jon Rista3-Feb-09 9:49
Jon Rista3-Feb-09 9:49 
QuestionDistributed computing and multithreaded primers Pin
Member 260377229-Jan-09 18:39
Member 260377229-Jan-09 18:39 
NewsRe: Distributed computing and multithreaded primers Pin
Eddy Vluggen30-Jan-09 11:09
professionalEddy Vluggen30-Jan-09 11:09 
Questiondeleting row Pin
vedharadha29-Jan-09 18:39
vedharadha29-Jan-09 18:39 
AnswerRe: deleting row Pin
vaghelabhavesh30-Jan-09 10:19
vaghelabhavesh30-Jan-09 10:19 
Questioni need java script for validating the empty textbox Pin
vinothtamilarasan29-Jan-09 17:27
vinothtamilarasan29-Jan-09 17:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.