Click here to Skip to main content
15,887,386 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need a multilingual virtual keyboard. Simulating key action using virtual key codes. Unable to generate accented charcacters Pin
revengeoffallen26-Jun-12 1:53
revengeoffallen26-Jun-12 1:53 
GeneralRe: Need a multilingual virtual keyboard. Simulating key action using virtual key codes. Unable to generate accented charcacters Pin
Richard MacCutchan26-Jun-12 2:02
mveRichard MacCutchan26-Jun-12 2:02 
Questionxaml parser exception Pin
Mydsh25-Jun-12 18:28
Mydsh25-Jun-12 18:28 
AnswerRe: xaml parser exception Pin
Dave Kreskowiak26-Jun-12 2:00
mveDave Kreskowiak26-Jun-12 2:00 
Questionarabic to roman numerals Pin
Salomon Velazquez25-Jun-12 12:38
Salomon Velazquez25-Jun-12 12:38 
AnswerRe: arabic to roman numerals Pin
PIEBALDconsult25-Jun-12 13:31
mvePIEBALDconsult25-Jun-12 13:31 
GeneralRe: arabic to roman numerals Pin
Salomon Velazquez25-Jun-12 13:51
Salomon Velazquez25-Jun-12 13:51 
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 

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.