C# Class IQMap.Impl.MapperCache

Override of IQObjectMapper factory to return our inherited versions of the ClassInfo and DelegateInfo classes.
Inheritance: IQObjectMapper.Impl.MapperCache
Mostra file Open project: jamietre/IQMap

Private Properties

Property Type Description
GCTimer_Elapsed void
GarbageCollect void
RemoveFromDict void

Public Methods

Method Description
CreateObjectData ( object obj ) : IObjectData

Create new

GetClassInfo ( Type type, IReflectionOptions options = null ) : IClassInfo
GetClassInfoBuilder ( ) : IQObjectMapper.Impl.IClassInfoBuilder
GetOrCreateObjectData ( object obj ) : IObjectData

Always returns object data

GetTrackedObjectData ( object obj ) : IObjectData

Returns null if the object is not tracked

MapperCache ( ) : System
TryGetObjectData ( object obj, IObjectData &data ) : bool

Try to get stored value data for an instance

Private Methods

Method Description
GCTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
GarbageCollect ( ) : void
RemoveFromDict ( object key ) : void

Method Details

CreateObjectData() public method

Create new
public CreateObjectData ( object obj ) : IObjectData
obj object
return IObjectData

GetClassInfo() public method

public GetClassInfo ( Type type, IReflectionOptions options = null ) : IClassInfo
type System.Type
options IReflectionOptions
return IClassInfo

GetClassInfoBuilder() public method

public GetClassInfoBuilder ( ) : IQObjectMapper.Impl.IClassInfoBuilder
return IQObjectMapper.Impl.IClassInfoBuilder

GetOrCreateObjectData() public method

Always returns object data
public GetOrCreateObjectData ( object obj ) : IObjectData
obj object
return IObjectData

GetTrackedObjectData() public method

Returns null if the object is not tracked
public GetTrackedObjectData ( object obj ) : IObjectData
obj object
return IObjectData

MapperCache() public method

public MapperCache ( ) : System
return System

TryGetObjectData() public method

Try to get stored value data for an instance
public TryGetObjectData ( object obj, IObjectData &data ) : bool
obj object
data IObjectData
return bool