Example of changing variable attributes at runtime in C#