Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
How to dispose an object created by FileInfo class
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Manish Jain
9y
2.6k
1
Reply
I am using a FileInfo class to get the length of the file as follows:
FileInfo infoFile = new FileInfo(configFile);
long configFileLength = infoFile.Length;
here configFile is the path of the file.
I want to dispose the object infoFile.
How can i do this?
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How can I change the mathematicalexpression in C++?
Why does the compiler give error to my Code?