Click here to Skip to main content
15,906,766 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sending Json looking formatted plain text to be de-serialized. Pin
OriginalGriff13-Mar-19 20:57
mveOriginalGriff13-Mar-19 20:57 
QuestionHow will i make the back color red for each rows in the listview? Pin
Fxty13-Mar-19 2:24
Fxty13-Mar-19 2:24 
AnswerRe: How will i make the back color red for each rows in the listview? PinPopular
OriginalGriff13-Mar-19 2:41
mveOriginalGriff13-Mar-19 2:41 
QuestionHow to get the Focal Length of a Canon Camera Pin
Member 1415621212-Mar-19 17:13
Member 1415621212-Mar-19 17:13 
AnswerRe: How to get the Focal Length of a Canon Camera Pin
OriginalGriff12-Mar-19 20:53
mveOriginalGriff12-Mar-19 20:53 
AnswerRe: How to get the Focal Length of a Canon Camera Pin
Pete O'Hanlon13-Mar-19 0:22
mvePete O'Hanlon13-Mar-19 0:22 
GeneralRe: How to get the Focal Length of a Canon Camera Pin
Member 1415621214-Mar-19 19:41
Member 1415621214-Mar-19 19:41 
GeneralRe: How to get the Focal Length of a Canon Camera Pin
Member 1415621218-Mar-19 15:41
Member 1415621218-Mar-19 15:41 
Questionmultiple dropdown list in excel file Pin
Member 1417992812-Mar-19 7:36
Member 1417992812-Mar-19 7:36 
QuestionRe: multiple dropdown list in excel file Pin
Richard MacCutchan12-Mar-19 7:52
mveRichard MacCutchan12-Mar-19 7:52 
AnswerRe: multiple dropdown list in excel file Pin
Member 1417992812-Mar-19 8:01
Member 1417992812-Mar-19 8:01 
GeneralRe: multiple dropdown list in excel file Pin
Richard MacCutchan12-Mar-19 8:35
mveRichard MacCutchan12-Mar-19 8:35 
QuestionCatch JavaScript errors Pin
dataminers11-Mar-19 0:43
dataminers11-Mar-19 0:43 
AnswerRe: Catch JavaScript errors Pin
OriginalGriff11-Mar-19 1:49
mveOriginalGriff11-Mar-19 1:49 
Rant[REPOST] Catch JavaScript errors Pin
Richard Deeming11-Mar-19 9:22
mveRichard Deeming11-Mar-19 9:22 
QuestionSizeF and InvariantCulture Pin
Bernhard Hiller11-Mar-19 0:38
Bernhard Hiller11-Mar-19 0:38 
What results do you think following code produces:
SizeF size = new SizeF(100.12f, 50.34f);
string result1 = Convert.ToString(size, CultureInfo.InvariantCulture);
string result2 = Convert.ToString(size, CultureInfo.GetCultureInfo("en-US"));
string result3 = size.ToString();
string result4 = FormattableString.Invariant($"{size}");
{Width=100.12, Height=50.34}, of course!?

But, alas, the result is always:
{Width=100,12, Height=50,34} with a decimal comma instead of a decimal point.

As a side note: "{" + string.Format(CultureInfo.InvariantCulture, "Width={0},Height={1}", size.Width, size.Height) + "}" returns the expected result.

That happens on my Windows 7 machine with a German OS.

Now I am a little confused...

I know that there's a SizeFConverter, but that would make things too complicated. I have a function which receives an object, converts that to a string and transfers the string to a different machine where the value should be parsed to a SizeF again.

(This post could also fit into the "Weird and Wonderful" category...
Oh sanctissimi Wilhelmus, Theodorus, et Fredericus!

AnswerRe: SizeF and InvariantCulture Pin
OriginalGriff11-Mar-19 1:59
mveOriginalGriff11-Mar-19 1:59 
GeneralRe: SizeF and InvariantCulture Pin
Bernhard Hiller11-Mar-19 4:19
Bernhard Hiller11-Mar-19 4:19 
GeneralRe: SizeF and InvariantCulture Pin
OriginalGriff11-Mar-19 4:56
mveOriginalGriff11-Mar-19 4:56 
AnswerRe: SizeF and InvariantCulture Pin
BillWoodruff11-Mar-19 22:04
professionalBillWoodruff11-Mar-19 22:04 
QuestionUsing different versions of Visual Studio Pin
Brian_TheLion9-Mar-19 19:37
Brian_TheLion9-Mar-19 19:37 
AnswerRe: Using different versions of Visual Studio Pin
OriginalGriff9-Mar-19 19:57
mveOriginalGriff9-Mar-19 19:57 
GeneralRe: Using different versions of Visual Studio Pin
Brian_TheLion9-Mar-19 23:25
Brian_TheLion9-Mar-19 23:25 
GeneralRe: Using different versions of Visual Studio Pin
OriginalGriff9-Mar-19 23:30
mveOriginalGriff9-Mar-19 23:30 
GeneralRe: Using different versions of Visual Studio Pin
Brian_TheLion9-Mar-19 23:50
Brian_TheLion9-Mar-19 23:50 

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.