private IEnumerable <string> GetNpcData() { // npc_begin warrior 20001 [gremlin] category={} level=1 exp=0 IEnumerable <NpcData> npcDataArray = new NpcData[] { new NpcData { Id = 20001, Name = "gremlin", Type = "warrior" }, new NpcData { Id = 20002, Name = "rabbit", Type = "warrior" }, new NpcData { Id = 20003, Name = "goblin", Type = "warrior" } }; IEnumerable <string> data = npcDataArray.Select(NpcDataService.Print); return(data); }