PR feedback

\n\nCommit migrated from 2e1cfcd1f9
This commit is contained in:
Ryan Brandenburg 2019-07-01 14:24:06 -07:00
parent 25cad453f4
commit f8b525f02d
2 changed files with 5 additions and 5 deletions

View File

@ -16,10 +16,10 @@ namespace Microsoft.Extensions.ObjectPool
T Create();
/// <summary>
/// Put an object in the pool.
/// Return an object to the pool.
/// </summary>
/// <param name="obj">The object to put in the pool.</param>
/// <returns><code>true</code> if put in the pool.</returns>
/// <param name="obj">The object to return to the pool.</param>
/// <returns><code>true</code> if returned to the pool.</returns>
bool Return(T obj);
}
}

View File

@ -10,13 +10,13 @@ namespace Microsoft.Extensions.ObjectPool
public abstract class ObjectPool<T> where T : class
{
/// <summary>
/// Gets an object from the pool is one is available, otherwise creates one.
/// Gets an object from the pool if one is available, otherwise creates one.
/// </summary>
/// <returns>A <typeparamref name="T"/>.</returns>
public abstract T Get();
/// <summary>
/// Put an object in the pool.
/// Return an object to the pool.
/// </summary>
/// <param name="obj">The object to add to the pool.</param>
public abstract void Return(T obj);