Skip to content

v0.1.14

Choose a tag to compare

@2394425147 2394425147 released this 23 Jul 03:19
· 19 commits to master since this release
Refactor SimaiFile for flexibility and resource management

SimaiFile class was refactored to improve the flexibility and ensure the proper disposal of the StreamReader object. Now, different types of file input (FileSystemInfo, string, Stream, StreamReader) are supported, which optimizes the file reading depending on the available input format. A IDisposable interface was implemented to ensure that the StreamReader (_simaiReader) is properly disposed, which helps to manage system resources by freeing up memory when the object is no longer needed. A 'Dispose' method was added to close the StreamReader when it's no longer needed. The changes lead to more flexible and efficient file reading and help manage system resources effectively.