diff --git a/Source/StructureMap/ObjectFactory.cs b/Source/StructureMap/ObjectFactory.cs index 2998492b..dc8364ed 100644 --- a/Source/StructureMap/ObjectFactory.cs +++ b/Source/StructureMap/ObjectFactory.cs @@ -2,7 +2,6 @@ using System.Collections; using System.Collections.Generic; using System.Security.Permissions; -using System.Text; using StructureMap.Configuration.Mementos; using StructureMap.Graph; @@ -110,7 +109,7 @@ public static void InjectByName(PLUGINTYPE instance, string instance /// Injects a new instance of CONCRETETYPE to PLUGINTYPE by name. /// /// - /// + /// /// public static void InjectByName(string instanceKey) { @@ -232,7 +231,7 @@ public static void ResetDefaults() } else { - throw ex; + throw; } } } @@ -265,7 +264,7 @@ public static object GetInstance(Type TargetType) /// /// Returns the default instance of the requested System.Type /// - /// + /// /// public static TargetType GetInstance() { @@ -286,7 +285,7 @@ public static object GetInstance(Type TargetType, InstanceMemento memento) /// /// Builds an instance of the TargetType for the given InstanceMemento /// - /// + /// /// /// public static TargetType GetInstance(InstanceMemento memento) @@ -308,7 +307,7 @@ public static object GetNamedInstance(Type TargetType, string InstanceName) /// /// Returns the named instance of the requested System.Type /// - /// + /// /// /// public static TargetType GetNamedInstance(string InstanceName) @@ -329,7 +328,7 @@ public static void SetDefaultInstanceName(Type TargetType, string InstanceName) /// /// Sets the default instance of the TargetType /// - /// + /// /// public static void SetDefaultInstanceName(string InstanceName) { @@ -360,7 +359,7 @@ public static IList GetAllInstances(Type targetType) /// /// Retrieves a list of all of the configured instances for a particular type /// - /// + /// /// public static IList GetAllInstances() {