コード例 #1
0
 /// <summary>
 /// Extends Remove.Starting action with the ability to set end position for removal to the first occurrence of the marker.
 /// This allows to make Remove.Starting.To action inclusive.
 /// <para>N.B.: Default Remove().Starting().To() is equivalent of Remove().Starting().To().From(The.Beginning)</para>
 /// </summary>
 /// <param name="position">Exact position for removal point.</param>
 /// <param name="marker">Marker value for removal point.</param>
 /// <exception cref="System.ArgumentOutOfRangeException">Thrown when Beginning or End position value is used.</exception>
 public static RemoveStringStartingOccurrenceToOccurrencePosition To(this RemoveStringStartingOccurrence source, The position, int occurrence, string of)
 {
     return(new RemoveStringStartingOccurrenceToOccurrencePosition(source, position, occurrence, of));
 }
コード例 #2
0
 /// <summary>
 /// Extends Remove.Starting action with the ability to set end position for removal to the first occurrence of the marker.
 /// This allows to make Remove.Starting.To action inclusive.
 /// <para>N.B.: Default Remove().Starting().To() is equivalent of Remove().Starting().To().From(The.Beginning)</para>
 /// </summary>
 /// <param name="position">Exact position for removal point.</param>
 /// <param name="marker">Marker value for removal point.</param>
 /// <exception cref="System.ArgumentOutOfRangeException">Thrown when Beginning or End position value is used.</exception>
 public static RemoveStringStartingOccurrenceToOccurrencePosition To(this RemoveStringStartingOccurrence source, The position, string marker)
 {
     return(source.To(position, 1, of: marker));
 }
コード例 #3
0
 /// <summary>
 /// Extends Remove.Starting action with the ability to set end position for removal to the given occurrence of the marker.
 /// This action is exclusive.
 /// <para>N.B.: Default Remove().Starting().To() is equivalent of Remove().Starting().To().From(The.Beginning)</para>
 /// </summary>
 /// <param name="occurrence">Occurrence count to remove to.</param>
 /// <param name="of">Marker value for removal point.</param>
 public static RemoveStringStartingOccurrenceToOccurrence To(this RemoveStringStartingOccurrence source, int occurrence, string of)
 {
     return(new RemoveStringStartingOccurrenceToOccurrence(source, occurrence, of));
 }
コード例 #4
0
 /// <summary>
 /// Extends Remove.Starting action with the ability to set end position for removal to the first marker.
 /// This action is exclusive.
 /// <para>N.B.: Default Remove().Starting().To() is equivalent of Remove().Starting().To().From(The.Beginning)</para>
 /// </summary>
 /// <param name="marker">Marker value for removal point.</param>
 public static RemoveStringStartingOccurrenceToOccurrence To(this RemoveStringStartingOccurrence source, string marker)
 {
     return(source.To(1, of: marker));
 }
コード例 #5
0
 /// <summary>
 /// Extends Remove.Starting action with the ability to set end position for removal.
 /// This action is exclusive.
 /// <para>N.B.: Default Remove().Starting().To() is equivalent of Remove().Starting().To().From(The.Beginning)</para>
 /// </summary>
 /// <param name="position">End position in string for removal.</param>
 public static RemoveStringStartingOccurrenceTo To(this RemoveStringStartingOccurrence source, int position)
 {
     return(new RemoveStringStartingOccurrenceTo(source, position));
 }
コード例 #6
0
 public static RemoveStringStartingOccurrenceFrom From(this RemoveStringStartingOccurrence source, The position)
 {
     return(new RemoveStringStartingOccurrenceFrom(source, position));
 }