Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. String Formatting

String Formatting

Scheduled Pinned Locked Moved C#
comtoolstutorialquestion
7 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Drew McGhie
    wrote on last edited by
    #1

    As a followup to my previous post here[^], I tried to google to find definitions of how to define the string to pass within a .ToString() call, but all I was able to find was a swath of forum questions like my previous one, and a few answers, but no concise list. What I'm looking for is a list of what can go into the .ToString() function and what the funcitonality of each character is. Can anyone give me a point in the right direction?

    D N L J J 5 Replies Last reply
    0
    • D Drew McGhie

      As a followup to my previous post here[^], I tried to google to find definitions of how to define the string to pass within a .ToString() call, but all I was able to find was a swath of forum questions like my previous one, and a few answers, but no concise list. What I'm looking for is a list of what can go into the .ToString() function and what the funcitonality of each character is. Can anyone give me a point in the right direction?

      D Offline
      D Offline
      Dustin Metzgar
      wrote on last edited by
      #2

      Try this: Custom Numeric Format Strings[^]


      Logifusion[^]

      1 Reply Last reply
      0
      • D Drew McGhie

        As a followup to my previous post here[^], I tried to google to find definitions of how to define the string to pass within a .ToString() call, but all I was able to find was a swath of forum questions like my previous one, and a few answers, but no concise list. What I'm looking for is a list of what can go into the .ToString() function and what the funcitonality of each character is. Can anyone give me a point in the right direction?

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        Try this Format Specification Fields: printf and wprintf Functions[^]

        1 Reply Last reply
        0
        • D Drew McGhie

          As a followup to my previous post here[^], I tried to google to find definitions of how to define the string to pass within a .ToString() call, but all I was able to find was a swath of forum questions like my previous one, and a few answers, but no concise list. What I'm looking for is a list of what can go into the .ToString() function and what the funcitonality of each character is. Can anyone give me a point in the right direction?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          .ToString() comes from a base class. All object that you created, will derive this .ToString(). That means each class has its own .ToString(). Which .ToString() do you mean ?

          1 Reply Last reply
          0
          • D Drew McGhie

            As a followup to my previous post here[^], I tried to google to find definitions of how to define the string to pass within a .ToString() call, but all I was able to find was a swath of forum questions like my previous one, and a few answers, but no concise list. What I'm looking for is a list of what can go into the .ToString() function and what the funcitonality of each character is. Can anyone give me a point in the right direction?

            J Offline
            J Offline
            jjansen
            wrote on last edited by
            #5

            Start at MSDN[^] The links to various pages therein will tell you everything you need to know.

            1 Reply Last reply
            0
            • D Drew McGhie

              As a followup to my previous post here[^], I tried to google to find definitions of how to define the string to pass within a .ToString() call, but all I was able to find was a swath of forum questions like my previous one, and a few answers, but no concise list. What I'm looking for is a list of what can go into the .ToString() function and what the funcitonality of each character is. Can anyone give me a point in the right direction?

              J Offline
              J Offline
              Judah Gabriel Himango
              wrote on last edited by
              #6

              Is this[^] what you're looking for?

              Tech, life, family, faith: Give me a visit. I'm currently blogging about: Goof around music jam with my brothers (with video) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

              D 1 Reply Last reply
              0
              • J Judah Gabriel Himango

                Is this[^] what you're looking for?

                Tech, life, family, faith: Give me a visit. I'm currently blogging about: Goof around music jam with my brothers (with video) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

                D Offline
                D Offline
                Drew McGhie
                wrote on last edited by
                #7

                That was exactly what I was looking for. I completely zoned out and forgot to check MSDN, but this link has more than what I was looking for. Thanks

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups