/// <summary> /// Initializes a new instance of the <see cref="StepInsertionResult"/> class. /// </summary> /// <param name="metadata">The instance of the <see cref="StepMetadata"/> class that this insertion result pertains to.</param> /// <param name="result">The result of the insertion process as defined by the <see cref="StepBuildResults"/> enum.</param> internal StepInsertionResult(StepMetadata metadata, StepBuildResults result) { this.Metadata = metadata; this.Outcome = result; }
/// <summary> /// Initializes a new instance of the <see cref="StepInsertionResult"/> class. /// </summary> /// <param name="type">The type of object used to build the metadata from.</param> /// <param name="method">The <see cref="MethodInfo"/> that represents a method in a class or struct.</param> /// <param name="result">The result of the insertion process as defined by the <see cref="StepBuildResults"/> enum.</param> internal StepInsertionResult(Type type, System.Reflection.MethodInfo method, StepBuildResults result) { this.Metadata = new StepMetadata(method.Name, type, null, null, null); this.Outcome = result; }
/// <summary> /// Initializes a new instance of the <see cref="StepInsertionResult"/> class. /// </summary> /// <param name="type">The type that the result pertains to.</param> /// <param name="result">The result of the insertion process as defined by the <see cref="StepBuildResults"/> enum.</param> internal StepInsertionResult(Type type, StepBuildResults result) { this.Metadata = new StepMetadata(null, type, null, null, null); this.Outcome = result; }