© { JSL }
78
Text Box: finally
finally
Folded Corner:
·you can ensure code always runs
win a finally { block }
wexception in finally block dominates
wyou cannot jump out of a finally block
TextReader reader = null;
try {  
    FileInfo source = new FileInfo(filename);
    int length = (int)source.Length;
    char[] contents = new char[length];
    reader = source.OpenText();
    reader.Read(contents, 0, length);
    ...
}
...
finally {
    if (reader != null) {
        reader.Close();
    }       
}
definite assignment rules, OK