C# height checker