Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/XmlGridReader.Benchmarks/Benchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace XmlGridReader.Benchmarks
{
[RankColumn(NumeralSystem.Arabic)]
[MemoryDiagnoser]
public class Benchmarks
{
private string xml;
Expand Down
6 changes: 3 additions & 3 deletions src/XmlGridReader/Reader.TypeDeserializerCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private Func<XmlGridRowReader, object> GetDeserializer(
{
reader.ReadRow();

if (!reader.Columns.Any())
if (reader.Columns.Count == 0)
{
throw new InvalidOperationException("No columns");
}
Expand Down Expand Up @@ -97,12 +97,12 @@ private int ComputeHashCode(List<string> fields)

public bool Equals(DeserializerKey other)
{
if (hashCode != other.hashCode || fields.Count() != other.fields.Count())
if (hashCode != other.hashCode || fields.Count != other.fields.Count)
{
return false;
}

for (int i = 0; i < fields.Count(); i++)
for (int i = 0; i < fields.Count; i++)
{
if (fields[i] != other.fields[i])
{
Expand Down