Results 1 to 5 of 5

Thread: Debug.WriteLine syntax

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2017
    Posts
    165

    Debug.WriteLine syntax

    I do not have much experience in Debug syntax and can't find in any book or tutorial. I am only going to present the code line for the Debug.WriteLine. The Project runs fine. My problem is to understand the Debug syntax.

    1. Debug code line:

    Code:
    Debug.WriteLine("a1) sb1.Length = {0}, sb1.Capacity = {1}", sb1.Length,sb1.Capacity)

    2. Result:

    a1) sb1.Length = 3, sb1.Capacity = 16

    2. What is the meaning (or roll) of:

    Code:
    "a1) sb1.Length = {0}, sb1.Capacity = {1}"
    And of:

    {0}

    and

    {1}
    Last edited by ebellounisoft; Aug 17th, 2017 at 09:11 AM.

Tags for this Thread

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