private static Stream OpenData() { // Edit the OpenData method to test the property for null and then use it to open the passed filename. if (Loader != null) return Loader.GetStreamForFilename(Filename); else throw new Exception("Must set platform Loader before calling Load."); }
private static Stream OpenData() { if (Loader != null) { return(Loader.GetStreamForFilename(Filename)); } throw new Exception("Must set platform Loader before calling Load."); }