Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mr mask #82

Merged
merged 10 commits into from
Mar 6, 2021
Merged
Show file tree
Hide file tree
Changes from 7 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
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
Konard marked this conversation as resolved.
Show resolved Hide resolved
#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 shifting a number to the left function delegate.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shifting a number to the leftleft shift

/// <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 shifting a number to the right function delegate.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shifting a number to the rightright shift

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right shift number, maybe?

/// <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 partial number rewrite function delegate.</para>
/// <para>Поле только для чтения, представляющее делегат функции частичной перезаписи числа.</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

функции частичной побитовой записи

/// </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 partial number reading 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