mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
439 B
17 lines
439 B
using System;
|
|
|
|
namespace ZeroLevel.Services.Config
|
|
{
|
|
public class ConfigRecordParseAttribute
|
|
: Attribute
|
|
{
|
|
public IConfigRecordParser Parser { get; set; }
|
|
|
|
public ConfigRecordParseAttribute(Type parserType)
|
|
{
|
|
if (parserType == null) throw new ArgumentNullException(nameof(parserType));
|
|
Parser = (IConfigRecordParser)Activator.CreateInstance(parserType);
|
|
}
|
|
}
|
|
}
|