mirror of
https://github.com/github/codeql.git
synced 2026-06-18 03:11:07 +02:00
18 lines
438 B
C#
18 lines
438 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Concurrent;
|
|
using System.Threading;
|
|
|
|
public class Configuration
|
|
{
|
|
public static Dictionary<string, string> properties = new Dictionary<string, string>();
|
|
|
|
// called concurrently elsewhere
|
|
public string getProperty(string key)
|
|
{
|
|
// BAD: unsynchronized access to static collection
|
|
return dict["foo"];
|
|
}
|
|
}
|