static void Main() { var fem = new FileExtensionManager(); fem.FileName = "example"; Console.WriteLine("Extension ->" + fem.GetFileExtension()); Console.WriteLine("File name ->" + fem.GetFileNameWithoutExtension()); fem.FileName = "example.pdf"; Console.WriteLine("Extension ->" + fem.GetFileExtension()); Console.WriteLine("File name ->" + fem.GetFileNameWithoutExtension()); fem.FileName = "example.new.pdf"; Console.WriteLine("Extension ->" + fem.GetFileExtension()); Console.WriteLine("File name ->" + fem.GetFileNameWithoutExtension()); Console.WriteLine("Distance in the 2D space = {0:f2}", Geometry.CalcDistance2D(1, -2, 3, 4)); Console.WriteLine("Distance in the 3D space = {0:f2}", Geometry.CalcDistance3D(5, 2, -1, 3, -6, 4)); double width = 3; double height = 4; double depth = 5; Console.WriteLine("Volume = {0:f2}", Geometry.CalcVolume(width, height, depth)); Console.WriteLine("Diagonal XYZ = {0:f2}", Geometry.CalcDiagonalXYZ(width, height, depth)); Console.WriteLine("Diagonal XY = {0:f2}", Geometry.CalcDiagonalXY(width, height)); Console.WriteLine("Diagonal XZ = {0:f2}", Geometry.CalcDiagonalXZ(width, depth)); Console.WriteLine("Diagonal YZ = {0:f2}", Geometry.CalcDiagonalYZ(height, depth)); }