static void AddKeyIdentifierItems(dynamic item, Dictionary<string, byte[]> result) { if (!string.IsNullOrEmpty(item.KeyIdentifier)) { var key = ParseKey(item.Key, item.KeyFormat); result.Add(item.KeyIdentifier, key); } }