protected virtual void OnRandomDataGenerated(
            object sender,
            byte[] data)
        {
            var args = new RandomDataGeneratedEventArgs
            {
                RandomData = data
            };

            if (RandomDataGenerated != null)
            {
                RandomDataGenerated(sender, args);
            }
        }
Esempio n. 2
0
 private static void OnRandomDataGenerated(object sender, RandomDataGeneratedEventArgs e)
 {
     Console.WriteLine(
         "Generation done.\n\n");
 }