/// <summary> /// The directive factory. /// </summary> /// <param name="property">The property name.</param> /// <param name="directive">The <see cref="InjectionDirective"/>.</param> /// <returns>An instance of <see cref="PropertyDirective"/>.</returns> public static PropertyDirective Create(string property, InjectionDirective directive) { return new PropertyDirective(property, directive); }
/// <summary> /// The directive factory. /// </summary> /// <param name="property">The property name.</param> /// <param name="directive">The <see cref="InjectionDirective"/>.</param> /// <returns>An instance of <see cref="PropertyDirective"/>.</returns> public static PropertyDirective Create(string property, InjectionDirective directive) { return(new PropertyDirective(property, directive)); }
/// <summary> /// Constructor with parameters. /// </summary> /// <param name="property">The property name.</param> /// <param name="directive">The <see cref="InjectionDirective"/>.</param> private PropertyDirective(string propertyName, InjectionDirective injectionDirective) : this() { this.Property = propertyName; this.InjectionDirective = injectionDirective; }