public static ButtonReturn ReadButtonSecure(params string[] tags) { entry1: ButtonReturn btn = MiddleConsole.ReadButton(); entry2: Func <string, bool> Checker = (str) => { if (tags.Contains(str)) { return(true); } else { return(false); } }; if (btn.tags.Any(Checker)) { Format format = new Format("secure_ask"); format.AppendLine("정말 " + btn.name + " 선택합니까?"); format.AppendLine("[예] [아니오]"); format.ToButton("[예]", "예"); format.ToButton("[아니오]", "아니오"); format.Print(); ButtonReturn btn2 = SimpleConsole.ReadButton(); if (btn2.name == "예") { return(btn); } else if (btn2.name == "아니오") { SimpleConsole.Clear("secure_ask"); goto entry1; } else { SimpleConsole.Clear("secure_ask"); goto entry2; } } else { SimpleConsole.Clear("secure_ask"); return(btn); } }