Hi guys,
I'm still trying to make sure I am understanding structured exception handling correctly. I have a piece of code to demonstrate my question.
Code:internal void ReadFromBinary(string PathToFile) { try { fileAsStream = new FileStream(PathToFile, FileMode.Open); fileReader = new StreamReader(fileAsStream); } catch (FileNotFoundException) { throw; //Throw the up to the caller? } //Does any code from here down not get called unless the exception is handled? }




Reply With Quote