コード例 #1
0
 public IRandomStringGenerationBuilder AndAllowCharacters(CharacterGroups characters)
 {
     foreach (var c in CharacterGroup.Get(characters))
     {
         this.allowedCharacters.Add(c);
     }
     return(this);
 }
コード例 #2
0
 public IRandomStringGenerationBuilder AllowCharacters(CharacterGroups characters)
 {
     this.allowedCharacters = new List <char>(CharacterGroup.Get(characters));
     return(this);
 }