c# Programming Glossary: commas
.NET String.Format() to add commas in thousands place for a number http://stackoverflow.com/questions/105770/net-string-format-to-add-commas-in-thousands-place-for-a-number String.Format to add commas in thousands place for a number I want to add a comma in the..
C#, regular expressions : how to parse comma-separated values, where some values might be quoted strings themselves containing commas http://stackoverflow.com/questions/1189416/c-regular-expressions-how-to-parse-comma-separated-values-where-some-values some values might be quoted strings themselves containing commas In C# using the Regex class how does one parse comma separated.. some values might be quoted strings themselves containing commas using System using System.Text.RegularExpressions class Example..
Best way to parse float? http://stackoverflow.com/questions/147801/best-way-to-parse-float TryParse but what I'm particularly wondering about is dots commas etc. I'm having problems with my website. On my dev server the..
Writing a CSV file in .net http://stackoverflow.com/questions/1684667/writing-a-csv-file-in-net now it is not a simple process of separating strings with commas I have searched for an existing CSV writer either 3rd party.. .net csv share improve this question If there are any commas in your cell surround the entire cell with double quotes eg..
Converting a generic list to a CSV string http://stackoverflow.com/questions/1890093/converting-a-generic-list-to-a-csv-string 2. Use stringbuilder to iterate the list and append commas 3. Test the last character and if it's a comma delete it. What.. in quotes i.e. x.ToString in case x.ToString contains commas. For an interesting read on a slight variant of this see Comma..
Simple C# CSV Excel export class http://stackoverflow.com/questions/2422212/simple-c-sharp-csv-excel-export-class that I needed. Features Extremely simple to use Escapes commas and quotes so excel handles them fine Exports date and datetimes..
Multiple colors in a C# .NET label http://stackoverflow.com/questions/275836/multiple-colors-in-a-c-sharp-net-label the text your UserControl could split the text on commas and then dynamically load a differently colored Label for each..
C# Regex Split - commas outside quotes http://stackoverflow.com/questions/3147836/c-sharp-regex-split-commas-outside-quotes Regex Split commas outside quotes I got quite a lot of strings segments of SQL.. share improve this question You could split on all commas that do have an even number of quotes following them using the..
Unable to send an email to multiple addresses/recipients using C# http://stackoverflow.com/questions/3209129/unable-to-send-an-email-to-multiple-addresses-recipients-using-c-sharp of the e mail message. or possibly a list separated by commas see below . Source To specify multiple addresses you need to..
How to pass table value parameters to stored procedure from .net code http://stackoverflow.com/questions/5595353/how-to-pass-table-value-parameters-to-stored-procedure-from-net-code that I pass to a stored proc as an nvarchar separated by commas and internally divide into single values. I add it to the SQL..
Does any one know of a faster method to do String.Split()? http://stackoverflow.com/questions/568968/does-any-one-know-of-a-faster-method-to-do-string-split approach for parsing CSV files in case you come across commas in the file eg 1 Something with a comma 2 3 The other thing.. than you need and the wrong tool to deal with escaped commas anyway . Also split creates lots of temporary objects. So if.. of quotes Handle escaped quotes ie and arguably escaped commas . Oh and to give you some idea of the cost of regex there was..
How should I detect which delimiter is used in a text file? http://stackoverflow.com/questions/761932/how-should-i-detect-which-delimiter-is-used-in-a-text-file way would be to read in every line and count both tabs and commas and find out which is most consistently used in every line... used in every line. Of course the data could include commas or tabs so that may be easier said than done. Edit Another fun..
C# Decimal.Parse issue with commas http://stackoverflow.com/questions/831727/c-sharp-decimal-parse-issue-with-commas Decimal.Parse issue with commas Here's my problem for en US Decimal.Parse 1 2 3 4 returns 1234..
|