sharp-chat/SharpChat.Common/Reflection/ObjectConstructorAttribute.cs

13 lines
349 B
C#
Raw Normal View History

2022-08-30 15:05:29 +00:00
using System;
namespace SharpChat.Reflection {
[AttributeUsage(AttributeTargets.Class)]
public abstract class ObjectConstructorAttribute : Attribute {
public string Name { get; }
public ObjectConstructorAttribute(string name) {
Name = name ?? throw new ArgumentNullException(nameof(name));
}
}
}