编辑代码

/******************************************************************************

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.

*******************************************************************************/
using System;
using System.Collections.Generic;


class HelloWorld {
  static void Main() {
    Console.WriteLine("Hello World");
    
    

    List<MU> MUList = new List<MU>();
    
    MU mu1 = new MU();
    mu1.fu="fu2";
    mu1.path = "path2";
    mu1.name = "name2";
    mu1.level = "level2";
    mu1.user = "user2";
    mu1.pass = "pass2";

    MUList.Add(mu1);

    foreach(var item in MUList){
        Console.WriteLine(item.fu);
        Console.WriteLine(item.path);
        Console.WriteLine(item.name);
        Console.WriteLine(item.level);
        Console.WriteLine(item.user);
        Console.WriteLine(item.pass);
    }



  }
}

class MU
{
    public String fu;
    public String path;

    public String name;
    public String level;
    public String user;
    public String pass;

}


Class Txtfile{
    public readFile(String filePath){
        String[] fileLines = File.ReadAllLines(filePath);
    }
}