/// <summary> /// Returns a new instance of the <see cref="TwoPartsTextResourceKeyBuilder"/> class that was initialized with /// the given member of the <see cref="TwoPartsTextResourceKeyPrefix"/> enumeration. /// </summary> /// <param name="prefix">A member of the <see cref="TwoPartsTextResourceKeyPrefix"/> enumeration.</param> /// <returns></returns> public static TwoPartsTextResourceKeyBuilder WithNewForPrefix(TwoPartsTextResourceKeyPrefix prefix) { if (!Enum.IsDefined(typeof(TwoPartsTextResourceKeyPrefix), prefix)) { throw new ArgumentOutOfRangeException("prefix"); } return(new TwoPartsTextResourceKeyBuilder(prefix)); }
/// <summary> /// Initializes a new instance of the <see cref="TwoPartsTextResourceKeyBuilder"/> with the given member of the /// <see cref="TwoPartsTextResourceKeyPrefix"/> enumeration. /// </summary> /// <param name="prefix">A member of the <see cref="TwoPartsTextResourceKeyPrefix"/> enumeration.</param> private TwoPartsTextResourceKeyBuilder(TwoPartsTextResourceKeyPrefix prefix) { _prefix = prefix; }