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

34 lines
760 B

6 years ago
using System;
5 years ago
namespace ZeroLevel.DependencyInjection
6 years ago
{
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.