예제 #1
0
 /// <summary>
 /// Returns a random font family from the font whitelist
 /// </summary>
 private string RandomFontFamily()
 {
     string[] array = null;
     if (array == null)
     {
         array = FontWhitelist.Split(new char[]
         {
             ';'
         });
     }
     return(array[_rand.Next(0, array.Length)]);
 }
예제 #2
0
 /// <summary>
 /// Returns a random font family from the font whitelist
 ///
 /// </summary>
 private string RandomFontFamily()
 {
     string[] strArray = FontWhitelist.Split(';');
     return(strArray[CryptoRandomNumberUtil.GetInt32(0, strArray.Length - 1)]);
 }