using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld1
{
class App
{
public App()
{
Func<string, Item> createItem = (string name) =>
{
return new Item(name);
};
Item item = createItem("장검");
Console.WriteLine("=> {0}", item.name);
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld1
{
class Item
{
public string name;
public Item(string name)
{
this.name = name;
}
public void createItem()
{
}
}
}