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.
iot/projects/Infrastructure/Web/Mvc/DynamicController/AdditionalMetadataAttribute.cs

17 lines
536 B

using System;
namespace Infrastructure.Web.Mvc
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Property, AllowMultiple = true)]
public sealed class AdditionalMetadataAttribute : Attribute
{
public AdditionalMetadataAttribute(string name, object value)
{
Name = name ?? throw new ArgumentNullException("name");
Value = value;
}
public string Name { get; private set; }
public object Value { get; private set; }
}
}