2
0
mirror of synced 2025-01-13 01:54:07 +00:00
cs-codex-dist-tests/Framework/Core/PluginMetadata.cs

28 lines
621 B
C#
Raw Normal View History

2023-09-13 16:06:05 +02:00
namespace Core
{
2023-09-14 15:40:15 +02:00
internal interface IPluginMetadata
2023-09-13 16:06:05 +02:00
{
Dictionary<string, string> Get();
}
public interface IAddMetadata
{
void Add(string key, string value);
}
2023-09-14 15:40:15 +02:00
internal class PluginMetadata : IPluginMetadata, IAddMetadata
2023-09-13 16:06:05 +02:00
{
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);
}
}
}