Click here to Skip to main content
15,908,661 members
Home / Discussions / C#
   

C#

 
GeneralRe: arabic to roman numerals Pin
PIEBALDconsult25-Jun-12 17:04
mvePIEBALDconsult25-Jun-12 17:04 
Salomon Velazquez wrote:
sRtn += RomanNums[k];


May I suggest a System.Text.StringBuilder instead?

You don't need k.

How about using an array of Tuple<int,string> rather than two arrays? And make it a static readonly field.

The for loop ought to stop when the value reaches zero, then you can eliminate the first if statement.

Your code won't produce MIM for 1999.
QuestionHow To Convert This From VB.Net Pin
Kevin Marois25-Jun-12 8:26
professionalKevin Marois25-Jun-12 8:26 
AnswerRe: How To Convert This From VB.Net Pin
Richard MacCutchan25-Jun-12 8:36
mveRichard MacCutchan25-Jun-12 8:36 
GeneralRe: How To Convert This From VB.Net Pin
Kevin Marois25-Jun-12 8:38
professionalKevin Marois25-Jun-12 8:38 
AnswerRe: How To Convert This From VB.Net Pin
OriginalGriff25-Jun-12 8:43
mveOriginalGriff25-Jun-12 8:43 
GeneralRe: How To Convert This From VB.Net Pin
Kevin Marois25-Jun-12 10:12
professionalKevin Marois25-Jun-12 10:12 
AnswerRe: How To Convert This From VB.Net Pin
Karthik Harve25-Jun-12 21:46
professionalKarthik Harve25-Jun-12 21:46 
Generaldefault textbox value Pin
vins2125-Jun-12 3:34
vins2125-Jun-12 3:34 
GeneralRe: default textbox value Pin
Pete O'Hanlon25-Jun-12 3:36
mvePete O'Hanlon25-Jun-12 3:36 
GeneralRe: default textbox value Pin
vins2125-Jun-12 3:53
vins2125-Jun-12 3:53 
AnswerRe: default textbox value Pin
Eddy Vluggen25-Jun-12 4:39
professionalEddy Vluggen25-Jun-12 4:39 
GeneralRe: default textbox value Pin
Sunil P V26-Jun-12 0:05
Sunil P V26-Jun-12 0:05 
QuestionHow to access the method from an Internal Class in a assembly/dll Pin
Rocky2325-Jun-12 2:30
Rocky2325-Jun-12 2:30 
AnswerRe: How to access the method from an Internal Class in a assembly/dll Pin
BobJanova25-Jun-12 2:36
BobJanova25-Jun-12 2:36 
GeneralRe: How to access the method from an Internal Class in a assembly/dll Pin
Rocky2325-Jun-12 2:54
Rocky2325-Jun-12 2:54 
GeneralRe: How to access the method from an Internal Class in a assembly/dll Pin
BobJanova25-Jun-12 4:49
BobJanova25-Jun-12 4:49 
GeneralRe: How to access the method from an Internal Class in a assembly/dll Pin
Rocky2325-Jun-12 4:56
Rocky2325-Jun-12 4:56 
GeneralRe: How to access the method from an Internal Class in a assembly/dll Pin
BobJanova25-Jun-12 5:21
BobJanova25-Jun-12 5:21 
QuestionRe: How to access the method from an Internal Class in a assembly/dll Pin
Eddy Vluggen25-Jun-12 3:28
professionalEddy Vluggen25-Jun-12 3:28 
AnswerRe: How to access the method from an Internal Class in a assembly/dll Pin
Rocky2325-Jun-12 4:52
Rocky2325-Jun-12 4:52 
GeneralRe: How to access the method from an Internal Class in a assembly/dll Pin
Eddy Vluggen25-Jun-12 6:04
professionalEddy Vluggen25-Jun-12 6:04 
Questionhow to use desktop composition + C# Pin
jojoba201124-Jun-12 20:59
jojoba201124-Jun-12 20:59 
AnswerRe: how to use desktop composition + C# Pin
OriginalGriff24-Jun-12 21:10
mveOriginalGriff24-Jun-12 21:10 
AnswerRe: how to use desktop composition + C# Pin
OriginalGriff24-Jun-12 21:10
mveOriginalGriff24-Jun-12 21:10 
AnswerRe: how to use desktop composition + C# Pin
Midnight Ahri24-Jun-12 21:35
Midnight Ahri24-Jun-12 21:35 

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.