/// <summary> /// Returns the only instance of RandomNumberProvider. /// </summary> /// <returns>RandomNumberProvider only instance.</returns> public static RandomNumberProvider GetInstance() { // No need for multi threading fix. if (instance == null) { instance = new RandomNumberProvider(); } return(instance); }
/// <summary> /// Returns the only instance of RandomNumberProvider. /// </summary> /// <returns>RandomNumberProvider only instance.</returns> public static RandomNumberProvider GetInstance() { // No need for multi threading fix. if (instance == null) { instance = new RandomNumberProvider(); } return instance; }
public RandomDataProvider() : this(RandomNumberProvider.GetInstance()) { }