Created
February 2, 2021 14:23
-
-
Save jzwang-dev/f169758c637c715a7a0db2fa2f460e47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 僅傳入maxLength選擇性引數,其餘使用參數預設值 | |
bool pass1 = CheckPasswordComplexity(somePassword, maxLength: 64); | |
// 使用具名引數以任意順序傳遞引數 | |
bool pass2 = CheckPasswordComplexity(somePassword, hasSpecialChar: true, maxLength: 64); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment