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.
Zero/ZeroLevel/Services/DependencyInjection/ParameterAttribute.cs

35 lines
770 B

using System;
namespace ZeroLevel.Patterns.DependencyInjection
{
public sealed class ParameterAttribute : Attribute
{
public string Name { get; }
public Type Type { get; }
public ParameterAttribute()
{
this.Type = null;
this.Name = string.Empty;
}
public ParameterAttribute(Type type)
{
this.Type = type;
this.Name = string.Empty;
}
public ParameterAttribute(string parameterName)
{
this.Type = null;
this.Name = parameterName;
}
public ParameterAttribute(Type type, string parameterName)
{
this.Name = parameterName;
this.Type = type;
}
}
}

Powered by TurnKey Linux.