"checked" added/removed, as applicable. Span converted to ReadOnlySpan, where possible. Calls to ReadOnlySpan/Span constructors converted to type-casting, where possible.
This commit is contained in:
1 parent
39d63d1d65
commit
d4d1364628
16 files changed
+204
-137
No files matched your search
@@ -49,12 +49,12 @@ namespace Recyclable.Collections
|
||||
if (value is T typeValue)
|
||||
{
|
||||
Add(typeValue);
|
||||
return (int)(_longCount - 1);
|
||||
return checked((int)(_longCount - 1));
|
||||
}
|
||||
else if (value == null && _defaultIsNull)
|
||||
{
|
||||
Add(null);
|
||||
return (int)(_longCount - 1);
|
||||
return checked((int)(_longCount - 1));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user