c# 简单的实例类的写法

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace xuexi
{
    internal class Ps
    {
        public void Pss() {
            Console.WriteLine("PS");
            
            
        }
    }
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
using System.Text;
using System.Threading.Tasks;


namespace xuexi
{
    class Program
    {

        static void Carr(params string[] list) { 
            for (int i = 0; i < list.Length; i++)
            {
                Console.WriteLine(list[i]); 
            }
        }

        static void Main(string[] args)
        {
            Ps p = new Ps();
            p.Pss();
        }
    }

}
分类:

发表评论