true if the characters that follow the last directory separator (\\ or /) or volume separator (:) in the path include a period (.) followed by one or more characters; otherwise, false.
Type Reason ArgumentException path contains one or more implementation-specific invalid characters.
Starting from the end of path, this method searches for a period (.) followed by at least one character. If this pattern is found before a Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar, or Path.VolumeSeparatorChar character is encountered, this method returns true.
For a list of common I/O tasks, see Common I/O Tasks.