In C# and in Java (and possibly other languages as well), variables declared in a \"try\" block are not in scope in the corresponding \"catch\" or \"finally\" blocks. For e
Instead of a local variable, a public property could be declared; this also should avoid another potential error of an unassigned variable.
public string S { get; set; }