ConfigurationDocItem
using System;
namespace Relativity.Transfer
{
public sealed class ConfigurationDocItem
{
public string Choices { get; }
public string DefaultValue { get; }
public string Description { get; }
public string Key { get; }
public ConfigurationDocItem(ConfigurationDocAttribute attribute)
{
if (attribute == null)
throw new ArgumentNullException("attribute");
Choices = attribute.Choices;
DefaultValue = attribute.DefaultValue.ToString();
Description = attribute.Description;
Key = attribute.Key;
}
public ConfigurationDocItem(string key, string description, string defaultValue, string choices)
{
if (string.IsNullOrEmpty(key))
throw new ArgumentNullException("key");
if (string.IsNullOrEmpty(description))
throw new ArgumentNullException("description");
if (string.IsNullOrEmpty(defaultValue))
throw new ArgumentNullException("defaultValue");
Choices = choices;
Key = key;
Description = description;
DefaultValue = defaultValue;
}
}
}