Here are the examples of the csharp api System.Collections.Generic.IDictionary.ContainsKey(PictureInfo) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : TagData.cs
with MIT License
from Zeugma440
with MIT License
from Zeugma440
private IDictionary<PictureInfo, int> generatePicturePositions()
{
IDictionary<PictureInfo, int> result = new Dictionary<PictureInfo, int>();
foreach (PictureInfo picInfo in Pictures)
{
if (result.ContainsKey(picInfo)) result[picInfo] = Math.Max(result[picInfo], picInfo.Position);
else result.Add(picInfo, picInfo.Position);
}
return result;
}