mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-09 23:25:43 +00:00
🛠 Resolve RCS1277 violation
This commit is contained in:
parent
4c30c8228b
commit
31850220cc
@ -204,9 +204,14 @@
|
|||||||
throw new ArgumentNullException(nameof(str));
|
throw new ArgumentNullException(nameof(str));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < str.Length; i += chunkSize)
|
return SplitInternal();
|
||||||
|
|
||||||
|
IEnumerable<string> SplitInternal()
|
||||||
{
|
{
|
||||||
yield return str.Substring(i, Math.Min(chunkSize, str.Length - i));
|
for (var i = 0; i < str.Length; i += chunkSize)
|
||||||
|
{
|
||||||
|
yield return str.Substring(i, Math.Min(chunkSize, str.Length - i));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user