public Dictionary<uint, IStream> FindByType(ulong type, bool partialType)
{
if (!partialType)
return StreamsByType.ContainsKey(type) ? StreamsByType[type] : new Dictionary<uint, IStream>();
return
StreamsByType.Where(x => (x.Key & type.GetTagMask()) == type)
.SelectMany(x => x.Value)
.ToDictionary(x => x.Key, x => x.Value);
}
public Dictionary<uint, IStream> FindByTypeByName(ulong type, string name, bool partialType, bool partialName)