Class Object<T>
Inheritance
System.Object
Object<T>
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FreeSql.Internal.ObjectPool
Assembly: FreeSql.dll
Syntax
public class Object<T> : IDisposable
Type Parameters
| Name | Description |
|---|---|
| T |
Properties
| Improve this Doc View SourceCreateTime
创建时间
Declaration
public DateTime CreateTime { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
GetTimes
被获取的总次数
Declaration
public long GetTimes { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
Id
在对象池中的唯一标识
Declaration
public int Id { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
LastGetThreadId
最后获取时的线程id
Declaration
public int LastGetThreadId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
LastGetTime
Declaration
public DateTime LastGetTime { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
LastGetTimeCopy
Declaration
public DateTime LastGetTimeCopy { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
LastReturnThreadId
最后归还时的线程id
Declaration
public int LastReturnThreadId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
LastReturnTime
最后归还时的时间
Declaration
public DateTime LastReturnTime { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
Pool
所属对象池
Declaration
public IObjectPool<T> Pool { get; }
Property Value
| Type | Description |
|---|---|
| IObjectPool<T> |
Value
资源对象
Declaration
public T Value { get; }
Property Value
| Type | Description |
|---|---|
| T |
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()
InitWith(IObjectPool<T>, Int32, T)
Declaration
public static Object<T> InitWith(IObjectPool<T> pool, int id, T value)
Parameters
| Type | Name | Description |
|---|---|---|
| IObjectPool<T> | pool | |
| System.Int32 | id | |
| T | value |
Returns
| Type | Description |
|---|---|
| Object<T> |
ResetValue()
重置 Value 值
Declaration
public void ResetValue()
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()
Implements
System.IDisposable