diff --git a/Engine.Core/Extensions/UniverseExtensions.cs b/Engine.Core/Extensions/UniverseExtensions.cs index c490e4b..2624712 100644 --- a/Engine.Core/Extensions/UniverseExtensions.cs +++ b/Engine.Core/Extensions/UniverseExtensions.cs @@ -8,7 +8,7 @@ public static class UniverseExtensions => universe.InstantiateUniverseObject(args); /// - /// Searches through alls to find the specified instance of the type. + /// Searches through all s to find the specified instance of the type. /// /// Type to be searched through the . /// The specified type if found; otherwise, throws . @@ -16,7 +16,7 @@ public static class UniverseExtensions => universe.GetUniverseObject() ?? throw new UniverseObjectNotFoundException($"{universe.GetType().FullName}({universe.Id}) does not contain any {nameof(IUniverseObject)} object of type {typeof(T).FullName}"); /// - /// Searches through alls to find the specified instance of the type. + /// Searches through all s to find the specified instance of the type. /// /// Type to be searched through the . /// The specified type if found; otherwise, throws . @@ -26,6 +26,9 @@ public static class UniverseExtensions /// /// Searches through all s and s to find the specified instance of the type. /// + /// + /// WARNING: This is more expensive compared to or as it combines the two. If you know whether the type is either a type that gets implemented on an or use the method appropriate for it for performance. + /// /// Type to be searched through the . /// The specified type if found; otherwise, throws . public static T FindRequired(this IUniverse universe) where T : class diff --git a/Engine.Core/Extensions/UniverseObjectExtensions.cs b/Engine.Core/Extensions/UniverseObjectExtensions.cs index 47b8860..16ad5cb 100644 --- a/Engine.Core/Extensions/UniverseObjectExtensions.cs +++ b/Engine.Core/Extensions/UniverseObjectExtensions.cs @@ -199,6 +199,9 @@ public static class UniverseObjectExtensions /// /// Finds an object of the specified type in the provided s and their s. /// + /// + /// WARNING: This is more expensive compared to or as it combines the two. If you know whether the type is either a type that gets implemented on an or use the method appropriate for it for performance. + /// /// The type of to find. /// The first found instance of the specified type; otherwise, null. public static T? Find(this IEnumerable universeObjects) where T : class @@ -215,6 +218,9 @@ public static class UniverseObjectExtensions /// /// Tries to find an object of the specified type in the provided s and their s. /// + /// + /// WARNING: This is more expensive compared to or as it combines the two. If you know whether the type is either a type that gets implemented on an or use the method appropriate for it for performance. + /// /// The type of to find. /// When this method returns, contains the of the specified type, if found; otherwise, null. /// if an object of the specified type was found in the provided s; otherwise, . @@ -227,6 +233,9 @@ public static class UniverseObjectExtensions /// /// Searches through the provided s and their s to collect a list of the specified type. /// + /// + /// WARNING: This is more expensive compared to or as it combines the two. If you know whether the type is either a type that gets implemented on an or use the method appropriate for it for performance. + /// /// The type of to get. /// List of objects found wit the specified type. /// The s to search.