Skip to content

Commit

Permalink
Merge pull request #82 from linksplatform/mrMask
Browse files Browse the repository at this point in the history
Mr mask
  • Loading branch information
Konard authored Mar 6, 2021
2 parents 8b216dc + e66b665 commit f5087b4
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 37 deletions.
2 changes: 0 additions & 2 deletions csharp/Platform.Numbers/Arithmetic.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Runtime.CompilerServices;

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member

namespace Platform.Numbers
{
/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions csharp/Platform.Numbers/ArithmeticExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Runtime.CompilerServices;

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member

namespace Platform.Numbers
{
/// <summary>
Expand Down
16 changes: 7 additions & 9 deletions csharp/Platform.Numbers/Arithmetic[T].cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,46 @@
using Platform.Reflection;

// ReSharper disable StaticFieldInGenericType
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member

namespace Platform.Numbers
{
/// <summary>
/// <para>Represents compiled arithmetic delegates.</para>
/// <para>Represents compiled arithmetic operations delegates.</para>
/// <para>Представляет набор скомпилированных делегатов арифметических операций.</para>
/// </summary>
public static class Arithmetic<T>
{
/// <summary>
/// <para>A read-only field that represents delegate of the addition function.</para>
/// <para>A read-only field that represents a addition function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции сложения.</para>
/// </summary>
public static readonly Func<T, T, T> Add = CompileAddDelegate();

/// <summary>
/// <para>A read-only field that represents delegate of the subtraction function.</para>
/// <para>A read-only field that represents a subtraction function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции вычитания.</para>
/// </summary>
public static readonly Func<T, T, T> Subtract = CompileSubtractDelegate();

/// <summary>
/// <para>A read-only field that represents delegate of the multiplication function.</para>
/// <para>A read-only field that represents a multiplication function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции умножения.</para>
/// </summary>
public static readonly Func<T, T, T> Multiply = CompileMultiplyDelegate();

/// <summary>
/// <para>A read-only field that represents delegate of the division function.</para>
/// <para>A read-only field that represents a division function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции деления.</para>
/// </summary>
public static readonly Func<T, T, T> Divide = CompileDivideDelegate();

/// <summary>
/// <para>A read-only field that represents delegate of the increment function.</para>
/// <para>A read-only field that represents a increment function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции инкремента.</para>
/// </summary>
public static readonly Func<T, T> Increment = CompileIncrementDelegate();

/// <summary>
/// <para>A read-only field that represents delegate of the decrement function.</para>
/// <para>A read-only field that represents a decrement function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции декремента.</para>
/// </summary>
public static readonly Func<T, T> Decrement = CompileDecrementDelegate();
Expand Down
2 changes: 0 additions & 2 deletions csharp/Platform.Numbers/Bit.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Runtime.CompilerServices;

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member

namespace Platform.Numbers
{
/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions csharp/Platform.Numbers/BitExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Runtime.CompilerServices;

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member

namespace Platform.Numbers
{
/// <summary>
Expand Down
32 changes: 16 additions & 16 deletions csharp/Platform.Numbers/Bit[T].cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,50 +9,50 @@
namespace Platform.Numbers
{
/// <summary>
/// <para>.</para>
/// <para>.</para>
/// <para>Represents a set of compiled bit operations delegates.</para>
/// <para>Представляет набор скомпилированных делегатов битовых операций.</para>
/// </summary>
public static class Bit<T>
{
/// <summary>
/// <para>.</para>
/// <para>.</para>
/// <para>A read-only field that represents a bitwise inversion function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции побитовой инверсии числа.</para>
/// </summary>
public static readonly Func<T, T> Not = CompileNotDelegate();

/// <summary>
/// <para>.</para>
/// <para>.</para>
/// <para>A read-only field that represents a logic addition function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции логического сложения.</para>
/// </summary>
public static readonly Func<T, T, T> Or = CompileOrDelegate();

/// <summary>
/// <para>.</para>
/// <para>.</para>
/// <para>A read-only field that represents a logic multiplication function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции логического умножения.</para>
/// </summary>
public static readonly Func<T, T, T> And = CompileAndDelegate();

/// <summary>
/// <para>.</para>
/// <para>.</para>
/// <para>A read-only field that represents a bitwise left shift function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции побитового сдвига числа влево.</para>
/// </summary>
public static readonly Func<T, int, T> ShiftLeft = CompileShiftLeftDelegate();

/// <summary>
/// <para>.</para>
/// <para>.</para>
/// <para>A read-only field that represents a bitwise right shift function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции побитового сдвига числа вправо.</para>
/// </summary>
public static readonly Func<T, int, T> ShiftRight = CompileShiftRightDelegate();

/// <summary>
/// <para>.</para>
/// <para>.</para>
/// <para>A read-only field that represents a bitwise number representation partial rewrite function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции частичной побитовой перезаписи представления числа.</para>
/// </summary>
public static readonly Func<T, T, int, int, T> PartialWrite = CompilePartialWriteDelegate();

/// <summary>
/// <para>.</para>
/// <para>.</para>
/// <para>A read-only field that represents a bitwise number representation partial read function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции частичного побитового считывания числа.</para>
/// </summary>
public static readonly Func<T, int, int, T> PartialRead = CompilePartialReadDelegate();

Expand Down
2 changes: 0 additions & 2 deletions csharp/Platform.Numbers/Math.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Runtime.CompilerServices;

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member

namespace Platform.Numbers
{
/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions csharp/Platform.Numbers/MathExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Runtime.CompilerServices;

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member

namespace Platform.Numbers
{
/// <summary>
Expand Down

0 comments on commit f5087b4

Please sign in to comment.