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.");
        }
示例#2
0
        private static Stream OpenData()
        {
            if (Loader != null)
            {
                return(Loader.GetStreamForFilename(Filename));
            }

            throw new Exception("Must set platform Loader before calling Load.");
        }