little fixes

This commit is contained in:
2016-11-25 14:57:17 +07:00
parent 49ef44273e
commit 184c903381
3 changed files with 9 additions and 3 deletions

View File

@@ -64,4 +64,4 @@ namespace IsoTools.Internal {
_dict.Clear();
}
}
}
}

View File

@@ -91,7 +91,7 @@ namespace IsoTools.Internal {
get { return _data.Length; }
set {
if ( value < _size ) {
throw new ArgumentOutOfRangeException("capacity");
throw new ArgumentOutOfRangeException("value");
}
if ( value != _data.Length ) {
if ( value > 0 ) {
@@ -107,4 +107,4 @@ namespace IsoTools.Internal {
}
}
}
}
}