From cc8298d83c5b6c3fb7250104b518f2a4d54d4f4f Mon Sep 17 00:00:00 2001 From: Stephan Date: Thu, 10 Oct 2013 16:44:21 +0200 Subject: [PATCH] U4-2606 - List registered types in a ManyObject resolver --- .../ObjectResolution/ManyObjectsResolverBase.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Umbraco.Core/ObjectResolution/ManyObjectsResolverBase.cs b/src/Umbraco.Core/ObjectResolution/ManyObjectsResolverBase.cs index 5a1514d130..03c9616485 100644 --- a/src/Umbraco.Core/ObjectResolution/ManyObjectsResolverBase.cs +++ b/src/Umbraco.Core/ObjectResolution/ManyObjectsResolverBase.cs @@ -458,6 +458,21 @@ namespace Umbraco.Core.ObjectResolution } } + /// + /// Gets the types in the collection of types. + /// + /// The types in the collection of types. + /// Returns an enumeration, the list cannot be modified. + public virtual IEnumerable GetTypes() + { + Type[] types; + using (new ReadLock(_lock)) + { + types = _instanceTypes.ToArray(); + } + return types; + } + /// /// Returns a value indicating whether the specified type is already in the collection of types. ///