Here are the examples of the csharp api System.Collections.Concurrent.ConcurrentDictionary.ContainsKey(IEntity) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
19
Source : EntityUpdates.cs
with MIT License
from SpiceSharp
with MIT License
from SpiceSharp
public void Add(IEnreplacedy enreplacedy, string parameterName, string expression, bool beforeTemperature)
{
if (enreplacedy == null)
{
throw new ArgumentNullException(nameof(enreplacedy));
}
if (parameterName == null)
{
throw new ArgumentNullException(nameof(parameterName));
}
if (expression == null)
{
throw new ArgumentNullException(nameof(expression));
}
if (!CommonUpdates.ContainsKey(enreplacedy))
{
CommonUpdates[enreplacedy] = new EnreplacedyUpdate();
}
if (beforeTemperature)
{
CommonUpdates[enreplacedy].ParameterUpdatesBeforeTemperature.Add(new EnreplacedyParameterExpressionValueUpdate()
{
Expression = new DynamicExpression(expression),
ParameterName = parameterName,
});
}
}
19
Source : EntityUpdates.cs
with MIT License
from SpiceSharp
with MIT License
from SpiceSharp
public void Add(IEnreplacedy enreplacedy, string parameterName, double value, bool beforeTemperature)
{
if (enreplacedy == null)
{
throw new ArgumentNullException(nameof(enreplacedy));
}
if (parameterName == null)
{
throw new ArgumentNullException(nameof(parameterName));
}
if (!CommonUpdates.ContainsKey(enreplacedy))
{
CommonUpdates[enreplacedy] = new EnreplacedyUpdate();
}
if (beforeTemperature)
{
CommonUpdates[enreplacedy].ParameterUpdatesBeforeTemperature.Add(
new EnreplacedyParameterDoubleValueUpdate() { ParameterName = parameterName, Value = value });
}
}