C# LanguageMaking a variable thread safe