Move LINQ-inspired methods to child namespaces (#7)

This commit is contained in:
Oliver Booth 2022-04-21 22:27:24 +01:00
parent 5fca0f8106
commit 4096265006
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
20 changed files with 55 additions and 20 deletions

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Linq;
namespace X10D.Tests.Core;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Linq;
namespace X10D.Tests.Core;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Linq;
namespace X10D.Tests.Core;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Linq;
namespace X10D.Tests.Core;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Linq;
namespace X10D.Tests.Core;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Linq;
namespace X10D.Tests.Core;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Linq;
namespace X10D.Tests.Core;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Linq;
namespace X10D.Tests.Core;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Linq;
namespace X10D.Tests.Core;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Linq;
namespace X10D.Tests.Core;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Linq;
namespace X10D.Tests.Core;

View File

@ -1,4 +1,4 @@
namespace X10D;
namespace X10D.Collections;
/// <summary>
/// Extension methods for <see cref="IEnumerable{T}" />.

View File

@ -1,4 +1,4 @@
namespace X10D;
namespace X10D.Collections;
/// <summary>
/// Extension methods for <see cref="IList{T}" /> and <see cref="IReadOnlyList{T}" />.

View File

@ -1,6 +1,9 @@
namespace X10D;
namespace X10D.Linq;
public static partial class EnumerableExtensions
/// <summary>
/// LINQ-inspired extension methods for <see cref="IEnumerable{T}" /> of <see cref="byte" />.
/// </summary>
public static class ByteExtensions
{
/// <summary>
/// Computes the product of a sequence of <see cref="byte" /> values.
@ -11,6 +14,7 @@ public static partial class EnumerableExtensions
{
return source.Aggregate((byte)1, (current, value) => (byte)(current * value));
}
/// <summary>
/// Computes the product of a sequence of <see cref="sbyte" /> values.
/// </summary>

View File

@ -1,6 +1,9 @@
namespace X10D;
namespace X10D.Linq;
public static partial class EnumerableExtensions
/// <summary>
/// LINQ-inspired extension methods for <see cref="IEnumerable{T}" /> of <see cref="decimal" />.
/// </summary>
public static class DecimalExtensions
{
/// <summary>
/// Computes the product of a sequence of <see cref="decimal" /> values.

View File

@ -1,6 +1,9 @@
namespace X10D;
namespace X10D.Linq;
public static partial class EnumerableExtensions
/// <summary>
/// LINQ-inspired extension methods for <see cref="IEnumerable{T}" /> of <see cref="double" />.
/// </summary>
public static class DoubleExtensions
{
/// <summary>
/// Computes the product of a sequence of <see cref="double" /> values.

View File

@ -1,6 +1,9 @@
namespace X10D;
namespace X10D.Linq;
public static partial class EnumerableExtensions
/// <summary>
/// LINQ-inspired extension methods for <see cref="IEnumerable{T}" /> of <see cref="long" />.
/// </summary>
public static class Int16Extensions
{
/// <summary>
/// Computes the product of a sequence of <see cref="short" /> values.
@ -11,6 +14,7 @@ public static partial class EnumerableExtensions
{
return source.Aggregate((short)1, (current, value) => (short)(current * value));
}
/// <summary>
/// Computes the product of a sequence of <see cref="ushort" /> values.
/// </summary>

View File

@ -1,6 +1,9 @@
namespace X10D;
namespace X10D.Linq;
public static partial class EnumerableExtensions
/// <summary>
/// LINQ-inspired extension methods for <see cref="IEnumerable{T}" /> of <see cref="int" />.
/// </summary>
public static class Int32Extensions
{
/// <summary>
/// Computes the product of a sequence of <see cref="int" /> values.

View File

@ -1,6 +1,9 @@
namespace X10D;
namespace X10D.Linq;
public static partial class EnumerableExtensions
/// <summary>
/// LINQ-inspired extension methods for <see cref="IEnumerable{T}" /> of <see cref="long" />.
/// </summary>
public static class Int64Extensions
{
/// <summary>
/// Computes the product of a sequence of <see cref="long" /> values.
@ -11,6 +14,7 @@ public static partial class EnumerableExtensions
{
return source.Aggregate(1L, (current, value) => current * value);
}
/// <summary>
/// Computes the product of a sequence of <see cref="ulong" /> values.
/// </summary>

View File

@ -1,6 +1,9 @@
namespace X10D;
namespace X10D.Linq;
public static partial class EnumerableExtensions
/// <summary>
/// LINQ-inspired extension methods for <see cref="IEnumerable{T}" /> of <see cref="float" />.
/// </summary>
public static class SingleExtensions
{
/// <summary>
/// Computes the product of a sequence of <see cref="float" /> values.