TryParse, gen types C# example