Skip to content

Instantly share code, notes, and snippets.

@jzwang-dev
Created February 2, 2021 14:23
Show Gist options
  • Save jzwang-dev/f169758c637c715a7a0db2fa2f460e47 to your computer and use it in GitHub Desktop.
Save jzwang-dev/f169758c637c715a7a0db2fa2f460e47 to your computer and use it in GitHub Desktop.
// 僅傳入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