Which classes of the .NET Framework should Hayley use to ensure that the stock details are
available to Sharon at all times? Justify your answer along with reasons
1
Expert's answer
2014-07-02T13:52:28-0400
One ofseveral main classes to ensure that the files are available is "File" class from "System.I0"namespace. It contains "bool Exists (stringpath)" method that allows to ensure that the file exists. Itreturns logic value "true" or "false" and takes 1 string argument with the path to appropriate file. The nextclass is "FileInfo" from "System.I0" namespace. It also has the same "bool Exists(string path)" method. Thismethod duplicates method from the previous class. Thedifference is that in the second case you need to createan object of the FileInfo class and then call"Exists" method from created object. In the "File" class "Exists" method is static. It means that it can be called fromclass name: System.I0.File.Exists(sfring path). So these two classeswould help Hayley to ensure that the stock details are available to Sharon at all times.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment