U4-2606 - List registered types in a ManyObject resolver

This commit is contained in:
Stephan
2013-10-10 16:44:21 +02:00
parent 13dcfbbd2b
commit cc8298d83c

View File

@@ -458,6 +458,21 @@ namespace Umbraco.Core.ObjectResolution
}
}
/// <summary>
/// Gets the types in the collection of types.
/// </summary>
/// <returns>The types in the collection of types.</returns>
/// <remarks>Returns an enumeration, the list cannot be modified.</remarks>
public virtual IEnumerable<Type> GetTypes()
{
Type[] types;
using (new ReadLock(_lock))
{
types = _instanceTypes.ToArray();
}
return types;
}
/// <summary>
/// Returns a value indicating whether the specified type is already in the collection of types.
/// </summary>