Skip to content

T_CodeJam_IO_TempData_TempBase

Andrew Koryavchenko edited this page Jun 17, 2018 · 9 revisions

TempData.TempBase Class

Base class for temp file|directory objects. Contains logic to proof the removal will be performed even on resource leak.

Inheritance Hierarchy

System.Object
  System.Runtime.ConstrainedExecution.CriticalFinalizerObject
    CodeJam.IO.TempData.TempBase
      CodeJam.IO.TempData.TempDirectory
      CodeJam.IO.TempData.TempFile
Namespace: CodeJam.IO
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public abstract class TempBase : CriticalFinalizerObject, 
	IDisposable

VB

Public MustInherit Class TempBase
	Inherits CriticalFinalizerObject
	Implements IDisposable

F#

[<AbstractClassAttribute>]
type TempBase =  
    class
        inherit CriticalFinalizerObject
        interface IDisposable
    end

The TempData.TempBase type exposes the following members.

Constructors

 

Name Description
Protected method TempData.TempBase Initializes a new instance of the TempData.TempBase class.
  Back to Top

Properties

 

Name Description
Public property Path Temp path.
  Back to Top

Methods

 

Name Description
Protected method AssertNotDisposed Assertion on object dispose
Protected methodStatic member DebugAssertValidPath Checks that the path is valid.
Public method Dispose() Delete the temp file|directory
Protected method Dispose(Boolean) Dispose pattern implementation - overridable part
Protected method DisposePath Temp path disposal
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Finalize instance (Overrides CriticalFinalizerObject.Finalize().)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SuppressDelete Suppresses item deletion on dispose.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

See Also

Reference

CodeJam.IO Namespace

Clone this wiki locally