public static void Main()
if (Kottan.TryParseKottan("Tom", out kottan))
Console.WriteLine(kottan.Name);
public static bool TryParseKottan(string kottanStr, out Kottan kottan)
if (!IsKottansName(kottanStr))
kottan = new Kottan(kottanStr);
private static bool IsKottansName(string kottanStr)
private readonly string name;
public Kottan(string name)