Here are the examples of the csharp api System.Collections.Generic.Dictionary.ContainsKey(WorkbenchServiceType) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : Workbench.cs
with MIT License
from Avanade
with MIT License
from Avanade
public void AddToCache(WorkbenchServiceType type, IWorkbenchService service)
{
if (_singletonCache.ContainsKey(type))
{
var message = $"The SingletonType '{type}' has been already set. Only one Workbench service of a given type is allowed.";
throw new ArgumentException(message, nameof(type));
}
_singletonCache.Add(type, service);
}