懂视
C# 中StringLength注解如何失效
2024-09-29 00:39:46
StringLength注解作用非public修饰的方法上就会失效,因为StringLength主要是获取字符串的长度的,只能在public中使用