System.CodeDom.Compiler.TempFileCollection.Delete C# (CSharp) Method

Delete() private method

private Delete ( string fileName ) : void
fileName string
return void
        internal void Delete(string fileName)
        {
            try
            {
                File.Delete(fileName);
            }
            catch
            {
                // Ignore all exceptions
            }
        }

Usage Example

Example #1
0
		public void Constructor0_Deny_Unrestricted ()
		{
			TempFileCollection tfc = new TempFileCollection ();
			Assert.AreEqual (0, tfc.Count, "Count");
			Assert.IsFalse (tfc.KeepFiles, "KeepFiles");
			Assert.AreEqual (String.Empty, tfc.TempDir, "TempDir");
			tfc.AddFile ("main.cs", false);
			tfc.CopyTo (array, 0);
			tfc.Delete ();
			(tfc as IDisposable).Dispose ();
		}
All Usage Examples Of System.CodeDom.Compiler.TempFileCollection::Delete