System.Collections.Generic.List.Contains(VersionManifestMemoryStore)

Here are the examples of the csharp api System.Collections.Generic.List.Contains(VersionManifestMemoryStore) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : BetterBTRL.cs
with The Unlicense
from BattletechModders

private void IndexMemoryStore(VersionManifestMemoryStore memoryStore)
        {
            UnIndexMemoryStore(memoryStore);
            foreach (VersionManifestEntry versionManifestEntry in memoryStore)
            {
                var key = versionManifestEntry.Type.FromString();
                if (!memoryStoreResourceIndex.TryGetValue(key, out var dictionary))
                {
                    dictionary = new Dictionary<string, List<VersionManifestMemoryStore>>();
                    memoryStoreResourceIndex[key] = dictionary;
                }

                if (!dictionary.TryGetValue(versionManifestEntry.Id, out var list))
                {
                    list = new List<VersionManifestMemoryStore>();
                    dictionary[versionManifestEntry.Id] = list;
                }

                if (!list.Contains(memoryStore))
                {
                    list.Add(memoryStore);
                }
            }
        }