C# Class ICSharpCode.NRefactory.Utils.CacheManager

Allows caching values for a specific compilation. A CacheManager consists of a for shared instances (shared among all threads working with that resolve context).
This class is thread-safe
Show file Open project: eusebiu/ILSpy Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Invokes the Disposed event.

GetShared ( object key ) : object
GetThreadLocal ( object key ) : object
SetShared ( object key, object val ) : void
SetThreadLocal ( object key, object val ) : void

Method Details

Dispose() public method

Invokes the Disposed event.
public Dispose ( ) : void
return void

GetShared() public method

public GetShared ( object key ) : object
key object
return object

GetThreadLocal() public method

public GetThreadLocal ( object key ) : object
key object
return object

SetShared() public method

public SetShared ( object key, object val ) : void
key object
val object
return void

SetThreadLocal() public method

public SetThreadLocal ( object key, object val ) : void
key object
val object
return void