2
0
mirror of synced 2025-01-12 17:44:08 +00:00
cs-codex-dist-tests/Framework/Core/PluginMetadata.cs
2023-09-20 10:51:47 +02:00

28 lines
621 B
C#

namespace Core
{
internal interface IPluginMetadata
{
Dictionary<string, string> Get();
}
public interface IAddMetadata
{
void Add(string key, string value);
}
internal class PluginMetadata : IPluginMetadata, IAddMetadata
{
private readonly Dictionary<string, string> metadata = new Dictionary<string, string>();
public void Add(string key, string value)
{
metadata.Add(key, value);
}
public Dictionary<string, string> Get()
{
return new Dictionary<string, string>(metadata);
}
}
}