コード例 #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 RemoveStringStartingToOccurrencePosition To(this RemoveStringStarting source, The position, string marker)
 {
     return(source.To(position, 1, of: marker));
 }
コード例 #2
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 RemoveStringStartingToOccurrence To(this RemoveStringStarting source, string marker)
 {
     return(source.To(1, of: marker));
 }