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/Internal/ConstructorParameter.cs

56 lines
1.1 KiB

6 years ago
using System;
5 years ago
namespace ZeroLevel.DependencyInjection
6 years ago
{
/// <summary>
/// Constructor argument type
6 years ago
/// </summary>
internal enum ConstructorParameterKind
{
/// <summary>
/// Constant
6 years ago
/// </summary>
None,
6 years ago
/// <summary>
/// DI parameter
6 years ago
/// </summary>
Parameter,
6 years ago
/// <summary>
/// Dependency
6 years ago
/// </summary>
Dependency
6 years ago
}
/// <summary>
/// Constructor argument metadata
6 years ago
/// </summary>
internal sealed class ConstructorParameter
{
/// <summary>
/// Argument DI-type
6 years ago
/// </summary>
public ConstructorParameterKind ParameterKind;
6 years ago
/// <summary>
/// Argument contract type
6 years ago
/// </summary>
public Type ParameterResolveType;
6 years ago
/// <summary>
/// Dependency name
6 years ago
/// </summary>
public string ParameterResolveName;
6 years ago
/// <summary>
/// Allow null
6 years ago
/// </summary>
public bool IsNullable;
6 years ago
/// <summary>
/// Argument CLR type
6 years ago
/// </summary>
public Type Type;
}
}

Powered by TurnKey Linux.