Skip to content

Commit

Permalink
Specialize IsNummOrEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
jbevain committed May 21, 2011
1 parent cce1fb2 commit 90e481c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Mono/Empty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

using System;
using System.Collections;
using System.Collections.Generic;
using Mono.Collections.Generic;

namespace Mono {

Expand All @@ -47,9 +45,9 @@ public static bool IsNullOrEmpty<T> (this T [] self)
return self == null || self.Length == 0;
}

public static bool IsNullOrEmpty<T> (this ICollection<T> self)
public static bool IsNullOrEmpty<T> (this Collection<T> self)
{
return self == null || self.Count == 0;
return self == null || self.size == 0;
}
}
}

0 comments on commit 90e481c

Please sign in to comment.