Skip to content

Commit 27c783c

Browse files
committed
Improved documentation
1 parent 949f315 commit 27c783c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Ninject.Extensions.Factory/Factory/StandardInstanceProvider.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public class StandardInstanceProvider : IInstanceProvider
4646
/// Gets an instance for the specified method and arguments.
4747
/// </summary>
4848
/// <param name="instanceResolver">The instance resolver.</param>
49-
/// <param name="methodInfo">The method info.</param>
50-
/// <param name="arguments">The arguments.</param>
49+
/// <param name="methodInfo">The method info of the method that was called on the factory.</param>
50+
/// <param name="arguments">The arguments that were passed to the factory.</param>
5151
/// <returns>The newly created instance.</returns>
5252
public virtual object GetInstance(IInstanceResolver instanceResolver, MethodInfo methodInfo, object[] arguments)
5353
{
@@ -81,8 +81,8 @@ public virtual object GetInstance(IInstanceResolver instanceResolver, MethodInfo
8181
/// <summary>
8282
/// Gets the constraint for the specified method and arguments.
8383
/// </summary>
84-
/// <param name="methodInfo">The method info.</param>
85-
/// <param name="arguments">The arguments.</param>
84+
/// <param name="methodInfo">The method info of the method that was called on the factory.</param>
85+
/// <param name="arguments">The arguments passed to the factory.</param>
8686
/// <returns>The constraint that shall be used to receive an instance. Null if no constraint shall be used.</returns>
8787
protected virtual Func<IBindingMetadata, bool> GetConstraint(MethodInfo methodInfo, object[] arguments)
8888
{
@@ -92,8 +92,8 @@ protected virtual Func<IBindingMetadata, bool> GetConstraint(MethodInfo methodIn
9292
/// <summary>
9393
/// Gets the type that shall be created for the specified method and arguments.
9494
/// </summary>
95-
/// <param name="methodInfo">The method info.</param>
96-
/// <param name="arguments">The arguments.</param>
95+
/// <param name="methodInfo">The method info of the method that was called on the factory.</param>
96+
/// <param name="arguments">The arguments that were passed to the factory.</param>
9797
/// <returns>The type that shall be created for the specified method and arguments.</returns>
9898
protected virtual Type GetType(MethodInfo methodInfo, object[] arguments)
9999
{
@@ -104,8 +104,8 @@ protected virtual Type GetType(MethodInfo methodInfo, object[] arguments)
104104
/// Gets the name that shall be used to request an instance for the specified method and arguments.
105105
/// Null if unnamed instances shall be requested.
106106
/// </summary>
107-
/// <param name="methodInfo">The method info.</param>
108-
/// <param name="arguments">The arguments.</param>
107+
/// <param name="methodInfo">The method info of the method that was called on the factory.</param>
108+
/// <param name="arguments">The arguments that were passed to the factory.</param>
109109
/// <returns>The name that shall be used to request an instance for the specified method and arguments.
110110
/// Null if unnamed instances shall be requested.</returns>
111111
protected virtual string GetName(MethodInfo methodInfo, object[] arguments)
@@ -116,8 +116,8 @@ protected virtual string GetName(MethodInfo methodInfo, object[] arguments)
116116
/// <summary>
117117
/// Gets the constructor arguments that shall be passed with the instance request.
118118
/// </summary>
119-
/// <param name="methodInfo">The method info.</param>
120-
/// <param name="arguments">The arguments.</param>
119+
/// <param name="methodInfo">The method info of the method that was called on the factory.</param>
120+
/// <param name="arguments">The arguments that were passed to the factory.</param>
121121
/// <returns>The constructor arguments that shall be passed with the instance request.</returns>
122122
protected virtual ConstructorArgument[] GetConstructorArguments(MethodInfo methodInfo, object[] arguments)
123123
{

0 commit comments

Comments
 (0)