The Extension property is inherited from FileSystemInfo.
When would you use it? As far as I know, DirectoryInfo represents directories and the actions you can perform on a directory. This would never include the need for an “extension”.
What’s the use of this property for the DirectoryInfo class?
Why would a
DirectoryInfoobject never include the need for an “extension”?Names like
foo.dir,bar.extandfoo.barare perfectly legal for directories, in NTFS and many other filesystems.