You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
-
- namespace Discord.Interactions
- {
- /// <summary>
- /// Sets the minimum length allowed for a string type parameter.
- /// </summary>
- [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
- public class MinLengthAttribute : Attribute
- {
- /// <summary>
- /// Gets the minimum length allowed for a string type parameter.
- /// </summary>
- public int Length { get; }
-
- /// <summary>
- /// Sets the minimum length allowed for a string type parameter.
- /// </summary>
- /// <param name="length">Minimum string length allowed.</param>
- public MinLengthAttribute(int length)
- {
- Length = length;
- }
- }
- }
|