From 9a73838f6cc5420f424bb5cdecface7604d9a560 Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Mon, 15 Jul 2013 13:42:48 +0000 Subject: [PATCH] Not using optional parameter in Variegator anymore because Windows Phone is a wuss git-svn-id: file:///srv/devel/repo-conversion/nusu@288 d2e56fa2-650e-0410-a79f-9358c0239efd --- Source/Collections/Variegator.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Collections/Variegator.cs b/Source/Collections/Variegator.cs index d2397c7..07aab4b 100644 --- a/Source/Collections/Variegator.cs +++ b/Source/Collections/Variegator.cs @@ -23,8 +23,6 @@ using System.Collections.Generic; namespace Nuclex.Support.Collections { - // ------------------------------------------------------------------------------------------- // - /// Randomly selects between different options, trying to avoid repetition /// Type of keys through which values can be looked up /// Type of values provided by the variegator @@ -50,11 +48,14 @@ namespace Nuclex.Support.Collections { /// public class Variegator { + /// Initializes a new variegator using the default history length + public Variegator() : this(64) {} + /// Initializes a new variegator /// /// How far into the past the variegator will look to avoid repetition /// - public Variegator(int historyLength = 64) { + public Variegator(int historyLength) { this.historyLength = historyLength; this.history = new TValue[historyLength]; this.values = new MultiDictionary();