You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// LUCENENET: Changed semantics to be the same as the StringBuilder in .NET
202
-
if(startIndex<0)
203
-
thrownewArgumentOutOfRangeException(nameof(startIndex),$"{nameof(startIndex)} must not be negative.");
204
-
if(length<0)
205
-
thrownewArgumentOutOfRangeException(nameof(length),$"{nameof(length)} must not be negative.");
206
-
207
-
if(valueisnull)
208
-
{
209
-
if(startIndex==0&&length==0)
210
-
returnthis;
211
-
thrownewArgumentNullException(nameof(value));
212
-
}
213
-
if(length==0)
214
-
returnthis;
215
-
if(startIndex>value.Length-length)
216
-
thrownewArgumentOutOfRangeException(nameof(startIndex),$"Index and length must refer to a location within the string. For example {nameof(startIndex)} + {nameof(length)} <= {nameof(Length)}.");
thrownewArgumentOutOfRangeException(nameof(startIndex),$"{nameof(startIndex)} must not be negative.");
227
-
if(charCount<0)
228
-
thrownewArgumentOutOfRangeException(nameof(charCount),$"{nameof(charCount)} must not be negative.");
229
-
230
-
if(valueisnull)
231
-
{
232
-
if(startIndex==0&&charCount==0)
233
-
returnthis;
234
-
thrownewArgumentNullException(nameof(value));
235
-
}
236
-
if(charCount==0)
237
-
returnthis;
238
-
if(startIndex>value.Length-charCount)
239
-
thrownewArgumentOutOfRangeException(nameof(startIndex),$"Index and length must refer to a location within the string. For example {nameof(startIndex)} + {nameof(charCount)} <= {nameof(Length)}.");
0 commit comments