コード例 #1
0
ファイル: OptionalAccount.cs プロジェクト: radtek/starwatch
 public Account ToAccount()
 {
     return(new Account(Name)
     {
         IsAdmin = IsAdmin.GetValueOrDefault(false),
         IsActive = IsActive.GetValueOrDefault(true),
         Password = Password
     });
 }