What does {0} stands for in Console.WriteLine?

前端 未结 5 1241
夕颜
夕颜 2020-12-20 07:20

Given the code :

// person.cs
using System;

// #if false

class Person
{
    private string myName = \"N/A\";
    private int myAge = 0;

    // Declare a          


        
5条回答
  •  情深已故
    2020-12-20 08:03

    the best way to learn about this stuff is the examples-part of this site:

    Console.WriteLine Method (String, Object)

提交回复
热议问题