大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
创新互联专业为企业提供海口网站建设、海口做网站、海口网站设计、海口网站制作等企业网站建设、网页设计与制作、海口企业网站模板建站服务,十载海口做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。
namespace ConsoleApplication1
{
class Program
{
class Class1
{
readonly string people;
public string People { get {return people;} }
readonly decimal price;
public decimal Price { get { return price; } }
public Class1(string people, decimal price)
{
this.people = people;
this.price = price;
}
public static List kkk()
{
return new List {
new Class1(people:"ssss",price:444m),
new Class1(people:"44333rrr",price:666m),
new Class1(people:"dddd",price:88m)
};
}
public override string ToString()
{
return string.Format("{0}:{1}",people,price);
}
static void Main(string[] args)
{
foreach(Class1 jjj in kkk())
{ Console.WriteLine(jjj.people+':'+jjj.price);
}
Console.ReadLine();
}
}
}
}