Hi, I am developing an application that interacts with the file system. We need the data provided by the Properties (FullName, Directory etc.) available from FileInfo. We have a bunch of custom properties we have created (such as .Saved, .Copied etc.) that
we are tracking
I thought I would build a new class Foo, which can inherit from FileInfo. I could then build custom properties and track the custom Properties and the properties provided by FileInfo.
Since FileInfo is a sealed class we cannot derive from it.
I Am considering creating a class without inheriting from FileInfo, but adding a FileInfo member and exposing the FileInfo properties we need access to via public properties.
Is this the right approach to accomplishing this goal? <br/>
Is there another way that we can accomplish this?
Thanks in advance. <hr class="sig shiku
View the full article
we are tracking
I thought I would build a new class Foo, which can inherit from FileInfo. I could then build custom properties and track the custom Properties and the properties provided by FileInfo.
Since FileInfo is a sealed class we cannot derive from it.
I Am considering creating a class without inheriting from FileInfo, but adding a FileInfo member and exposing the FileInfo properties we need access to via public properties.
Is this the right approach to accomplishing this goal? <br/>
Is there another way that we can accomplish this?
Thanks in advance. <hr class="sig shiku
View the full article