/// <summary> /// Create a new instance of the file deleter /// </summary> /// <param name="mode">The type of delete you would like to perform.</param> /// <param name="rounds">The amount of times you would like to overwrite data(1, 3, 7, 11, etc)</param> public SFD(RemovalMode mode, int rounds = 1, int randomSeed = 102498573) { //pass the parameters... this._mode = mode; this._rounds = rounds; this._random = new Random(randomSeed); //intalize the random seed }
public void Clear(RemovalMode removalMode) { if (removalMode == RemovalMode.Shallow) { ClearInShallowMode(); } else { ClearInDeepMode(); } }