Skip to content

Instantly share code, notes, and snippets.

sachintha81 / MainWindow.xaml.cs
Last active Oct 20, 2019
WPF Progress Bar in a separate Window
View MainWindow.xaml.cs
using System;
using System.ComponentModel;
using System.Threading;
using System.Windows;
namespace WPFProgressBar
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
sachintha81 / TrueRandomNumbers.cs
Created Jan 30, 2017
C# True (almost) Random Number Generator
View TrueRandomNumbers.cs
//The following sample uses the Cryptography class to simulate the roll of a dice.
using System;
using System.IO;
using System.Text;
using System.Security.Cryptography;
class RNGCSP
private static RNGCryptoServiceProvider rngCsp = new RNGCryptoServiceProvider();
You can’t perform that action at this time.