2023-08-26 18:11:29 +01:00
|
|
|
namespace X10D.MetaServices;
|
2023-04-06 17:00:39 +01:00
|
|
|
|
|
|
|
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Parameter | AttributeTargets.ReturnValue, Inherited = false)]
|
2023-04-06 17:05:37 +01:00
|
|
|
internal sealed class OverloadTypeAttribute : Attribute
|
2023-04-06 17:00:39 +01:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="OverloadTypeAttribute"/> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="types">The types to overload.</param>
|
|
|
|
public OverloadTypeAttribute(params Type[] types)
|
|
|
|
{
|
|
|
|
Types = (Type[])types.Clone();
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets an array of types to overload.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>An array of types to overload.</value>
|
|
|
|
public Type[] Types { get; }
|
|
|
|
}
|