Skip to content

Instantly share code, notes, and snippets.

@chsami
Last active September 16, 2021 16:20
Show Gist options
  • Select an option

  • Save chsami/31c90af937f5ec4ba4aede64a43bd604 to your computer and use it in GitHub Desktop.

Select an option

Save chsami/31c90af937f5ec4ba4aede64a43bd604 to your computer and use it in GitHub Desktop.
public class MyService
{
private static Dictionary<string, string> dictionary;
public async Task loadData()
{
dictionary = new Dictionary<string, string>()
{
{"test", "test" }
};
if (dictionary == null)
Console.WriteLine("Dictionary is full");
else
Console.WriteLine("Dictionary is empty");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment