mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
15 lines
224 B
C#
15 lines
224 B
C#
string name;
|
|
|
|
public string Name
|
|
{
|
|
get
|
|
{
|
|
lock (mutex) // GOOD: Thread-safe
|
|
{
|
|
if (name == null)
|
|
name = LoadNameFromDatabase();
|
|
return name;
|
|
}
|
|
}
|
|
}
|