About 210,000 results
Open links in new tab
  1. c# - How can I convert String to Int? - Stack Overflow

    I have a TextBoxD1.Text and I want to convert it to an int to store it in a database. How can I do this?

  2. c# - Best way to cast/convert number to string - Stack Overflow

    May 5, 2014 · I was looking at the following question, comparing casting to converting, which basically stated (Through all the answers), that if you know your object is a string, use (string) rather than …

  3. Convert a string to an enum in C# - Stack Overflow

    What's the best way to convert a string to an enumeration value in C#? I have an HTML select tag containing the values of an enumeration. When the page is posted, I want to pick up the value (which...

  4. .net - How to convert string to integer in C# - Stack Overflow

    Feb 26, 2010 · How to convert string to integer in C# Asked 15 years, 9 months ago Modified 3 years, 2 months ago Viewed 246k times

  5. c# - How to convert string to string []? - Stack Overflow

    Jun 18, 2012 · Edit: So obviously there's no direct way to convert a single String to an String[] or vice-versa. Though you can use String.Split to get a String[] from a String by using a separator (for …

  6. c# - How to convert DateTime to/from specific string format (both …

    I am having a problem converting a datetime which is in string format but I am not able to convert it using "yyyyMMdd" format. My code is: string tpoc = refSubClaim.BenefitsFolder.BenefitFolderId...

  7. .net - Convert a list to a string in C# - Stack Overflow

    How do I convert a list to a string in C#? When I execute toString on a List object, I get: System.Collections.Generic.List`1[System.String]

  8. c# - Convert a list into a comma-separated string - Stack Overflow

    private static string GenerateCommaSeparateStringFromList(List<string> listStrings){return String.Join(",", listStrings);} Convert a list of string to a comma-separated string in C#

  9. c# - Converting a String to DateTime - Stack Overflow

    May 28, 2009 · It's also worth remembering DateTime is an object that is stored as number internally in the framework, Format only applies to it when you convert it back to string. Parsing converting a …

  10. c# - Convert int to string? - Stack Overflow

    Jun 21, 2010 · How can I convert an int datatype into a string datatype in C#?