##// END OF EJS Templates
minor changes
minor changes

File last commit:

r84:34bb2f32634d v2
r84:34bb2f32634d v2
Show More
ObjectPoolWrapper.cs
24 lines | 514 B | text/x-csharp | CSharpLexer
/ Implab / ObjectPoolWrapper.cs
cin
added object pool
r82 using System;
namespace Implab {
cin
minor changes
r84 public class ObjectPoolWrapper<T> : IDisposable {
cin
added object pool
r82 readonly T m_value;
readonly ObjectPool<T> m_pool;
internal ObjectPoolWrapper(T value, ObjectPool<T> pool) {
m_value = value;
m_pool = pool;
}
public T Value {
get { return m_value; }
}
#region IDisposable implementation
public void Dispose() {
m_pool.Release(m_value);
}
#endregion
}
}