Results 1 to 2 of 2

Thread: Help with c#

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    10

    Smile Help with c#

    what does
    Encoding.get_Default().GetBytes(whatever)
    do ?

    and

    BitConverter.GetBytes(num2 + 1)
    do ?

    and

    text1 = Encoding.get_Default().GetString(buffer1, 5, num4);
    do ?

    thanks

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Help with c#

    Encoding.get_Default().GetBytes(whatever)
    When overridden in a derived class, encodes all the characters in the specified String into a sequence of bytes.
    BitConverter.GetBytes(num2 + 1)
    Returns the specified 32-bit (or whatever is the size of the variable) signed integer value as an array of bytes
    Encoding.get_Default().GetString(buffer1, 5, num4);
    When overridden in a derived class, decodes a sequence of bytes from the specified byte array into a string.
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width