Community discussion forum

Strings in .NET and C#

This is a comment thread discussing Strings in .NET and C#
  • 9 years ago

    This thread is for discussions of Strings in .NET and C#.

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 3 years ago

    I'm working on project which converts differnt forms of temperature like Celcius, Farenheit and kelvin etc..
    I also have to put up access keys to it for each conversion. Please help me with conversion function and access keys. I also have to put up access keys for reset as well as exit buttons on the form. What is is double type variable?

  • 3 years ago

    Hi, i read 2 of your articles they are interesting. However, I can not figure out what or where the contents come from for the variable
    readonly string[] LowNames and how it is used. I would appreciate a short description.

  • 2 years ago

    Quote:
    [1]Posted by av_rocksu on 11 Sep 2005 06:00 AM[/1]
    I'm working on project which converts differnt forms of temperature like Celcius, Farenheit and kelvin etc..
    I also have to put up access keys to it for each conversion. Please help me with conversion function and access keys. I also have to put up access keys for reset as well as exit buttons on the form. What is is double type variable?


    I'm not at all sure what this has to do with Strings, but the C# type for double precision binary floating point values is "double".


    See my article on floating point arithmetic for more information. It's at http://www.pobox.com/~skeet/csharp/floatingpoint.html
    (Sorry, the "insert link" button doesn't seem to work in Firefox.)


    Jon

  • 2 years ago

    Quote:
    [1]Posted by eliassal on 10 Nov 2005 06:17 AM[/1]
    Hi, i read 2 of your articles they are interesting. However, I can not figure out what or where the contents come from for the variable
    readonly string[] LowNames and how it is used. I would appreciate a short description.


    Do you mean you don't know how the array is populated, or you don't know why I populated it with the names I did?


    To answer the first question - if you look at the code, you'll see there's a static field initializer:


    static readonly string[] LowNames =
    {
       "NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL",
       "BS", "HT", "LF", "VT", "FF", "CR", "SO", "SI",
       "DLE", "DC1", "DC2", "DC3", "DC4", "NAK", "SYN", "ETB",
       "CAN", "EM", "SUB", "ESC", "FS", "GS", "RS", "US"
    };


    The names come from the man page for ASCII on a unix box


    Jon

Post a reply

Enter your message below

Sign in or Join us (it's free).