mirror of https://github.com/oliverbooth/X10D
🛠 Resolve RCS1277 violation
This commit is contained in:
parent
4c30c8228b
commit
31850220cc
|
@ -204,11 +204,16 @@
|
||||||
throw new ArgumentNullException(nameof(str));
|
throw new ArgumentNullException(nameof(str));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return SplitInternal();
|
||||||
|
|
||||||
|
IEnumerable<string> SplitInternal()
|
||||||
|
{
|
||||||
for (var i = 0; i < str.Length; i += chunkSize)
|
for (var i = 0; i < str.Length; i += chunkSize)
|
||||||
{
|
{
|
||||||
yield return str.Substring(i, Math.Min(chunkSize, str.Length - i));
|
yield return str.Substring(i, Math.Min(chunkSize, str.Length - i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Converts a <see cref="string"/> to a <see cref="SecureString"/>.
|
/// Converts a <see cref="string"/> to a <see cref="SecureString"/>.
|
||||||
|
|
Loading…
Reference in New Issue