-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileSystem property of DirectoryInfo is not what it seems #1173
Comments
I am not sure I get what you mean. The description of the /// <summary>
/// Exposes the underlying filesystem implementation. This is useful for implementing extension methods.
/// </summary> What is your interpretation of the file system being "related to the parent object"? |
I mean the property could be considered as acting within a scope of the object it belongs. |
Ah, I see your point. You would expect the current directory to be changed, when you access the file system from a Do you have a suggestion on how to improve the documentation to make this more clear? |
Is your feature request related to a problem? Please describe.
On multiple occasions I've misinterpret the
DirectoryInfo.FileSystem
property as related to this exact DirectoryInfo object which isn't true at all.Describe the solution you'd like
It would be nice to have some clear statement in the description that they aren't related (yes, I know that's derived from IFileSystemInfo interface but still). Something like "The property isn't related to its parent object".
The text was updated successfully, but these errors were encountered: