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

Commenting Setters #38

Merged
merged 49 commits into from
Oct 19, 2022
Merged

Commenting Setters #38

merged 49 commits into from
Oct 19, 2022

Conversation

qwasd3lol
Copy link
Contributor

Added russian translations of comments

Added russian translations of comments
There was incorrect Ru->Eng translations of "возвращает" word.
@@ -11,7 +11,8 @@ namespace Platform.Setters
/// </summary>
/// <typeparam name="TResult"><para>The type of result value.</para><para>Тип результирующего значения.</para></typeparam>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <typeparam name="TResult"><para>The type of result value.</para><para>Тип результирующего значения.</para></typeparam>
/// <typeparam name="TResult">
/// <para>The type of a result value.</para>
/// <para>Тип результирующего значения.</para>
</typeparam>

@@ -42,29 +39,29 @@ public Setter(TDecision trueValue, TDecision falseValue, TResult defaultValue)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Конструктор Setter делегирует свою работу более общему, добавив ему третий параметр со значением по умолчанию.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Do not say about implementation details, imagine you are reading constructor documentation and see a lot of constructors like This constructor delegates this to another, that one delegates to another one
Documentation must be autonomous

The first para must be in English, the second in Russian

/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Setter(TDecision trueValue, TDecision falseValue) : this(trueValue, falseValue, default) { }

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a new instance of the Setter class using the passed-in value as the default result value.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Use paramref

Suggested change
/// <para>Initializes a new instance of the Setter class using the passed-in value as the default result value.</para>
/// <para>Initializes a new instance of the Setter class with the <paramref name="defaultValue"/>.</para>

/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Setter(TResult defaultValue) : base(defaultValue) { }

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a new instance of the Setter.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Initializes a new instance of the Setter.</para>
/// <para>Initializes a new instance of the Setter class.</para>

/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Setter() { }

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a TDecision method that sets the passed-in value as the result value and returns trueValue.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Initializes a TDecision method that sets the passed-in value as the result value and returns trueValue.</para>
/// <para>Assigns the <paramref name="value"/> to the result ant returns <see langword="true"/>.</para>

@@ -74,8 +71,8 @@ public TDecision SetAndReturnTrue(TResult value)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a TDecision method that sets the passed-in value as the result value and returns falseValue.</para>
Copy link
Member

Choose a reason for hiding this comment

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

The same as above

@@ -85,8 +82,8 @@ public TDecision SetAndReturnFalse(TResult value)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a TDecision method that sets the first passed-in from IList value as the result value and returns trueValue.</para>
Copy link
Member

Choose a reason for hiding this comment

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

The same as above

@@ -96,8 +93,8 @@ public TDecision SetFirstAndReturnTrue(IList<TResult> list)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a TDecision method that sets the first passed-in from IList value as the result value and returns falseValue.</para>
Copy link
Member

Choose a reason for hiding this comment

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

The same as above

csharp/Platform.Setters/Setter[TResult].cs Outdated Show resolved Hide resolved
/// Initializes a new <see cref="Setter"/> instance.
/// </para>
/// <para></para>
/// <para>Initializes a new <see cref="Setter"/> instance.</para>
Copy link
Member

@FreePhoenix888 FreePhoenix888 Nov 21, 2021

Choose a reason for hiding this comment

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

Above you have written Initializes a new instance of the class
Stick to the same style. Choose between this or that variant and check how microsoft does

Specify that that bool and false are used as default values for true value field and false value field

/// </para>
/// <para></para>
/// <para>Initializes a new <see cref="Setter"/> instance.</para>
/// <para>Инициализирует новый экземпляр <see cref="Setter"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

The same as above

corrections
/// <para>Тип результирующего значения.</para>
/// </typeparam>
/// <typeparam name="TDecision">
/// <para>The type of value which will be used to make the decision.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>The type of value which will be used to make the decision.</para>
/// <para>The type of a value which will be used to make the decision.</para>

@@ -6,10 +6,13 @@
namespace Platform.Setters
{
/// <summary>
/// <para>Represents a base implementation for an setter that allows you to set a passed value as the result value.</para>
/// <para>Представляет базовую реализацию для установщика, который позволяет установить переданное ему значение в качестве результирующего значения.</para>
/// <para>Provides a base implementation for an setter that allows you to set a passed value as the result value.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Provides a base class that allows you to set a passed value as the result value.

/// <typeparam name="TResult"><para>The type of result value.</para><para>Тип результирующего значения.</para></typeparam>
/// <typeparam name="TDecision"><para>The type of value which will be used to make the decision.</para><para>Тип значения на основе которого будет приниматься решение.</para></typeparam>
/// <typeparam name="TResult">
/// <para>The type of result value.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Add an article

@@ -29,7 +35,10 @@ public class Setter<TResult, TDecision> : SetterBase<TResult>
/// <para>Initializes a new instance of the Setter class using the passed-in value as the default result value.</para>
/// <para>Инициализирует новый экземпляр класса Setter, используя переданные значения trueValue, falseValue, defaultValue в качестве результирующего по умолчанию.</para>
/// </summary>
/// <param name="defaultValue"><para>The default result value.</para><para>Результирующее значение по умолчанию.</para></param>
/// <param name="defaultValue">
/// <para>The default result value.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Change the article to a

[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected SetterBase(TResult defaultValue) => _result = defaultValue;

/// <summary>
/// <para>Sets the passed value as the result.</para>
/// <para>Устанавливает переданное значение в качестве результирующего.</para>
/// </summary>
/// <param name="value"><para>The result value.</para><para>Результирующее значение.</para></param>
/// <param name="value">
/// <para>The result value.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Change the article to a

@@ -39,29 +48,29 @@ public Setter(TDecision trueValue, TDecision falseValue, TResult defaultValue)
}

/// <summary>
/// <para>Конструктор Setter делегирует свою работу более общему, добавив ему третий параметр со значением по умолчанию.</para>
/// <para>The Setter constructor delegates its work to a more general one by adding a third parameter with a default value.</para>
/// <para>Initializes a new instance of the Setter class with the third parameter set as default.</para>
Copy link
Member

Choose a reason for hiding this comment

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

It is not interested for users

/// <para>Инициализирует новый экземпляр класса Setter.</para>
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Setter() { }

/// <summary>
/// <para>Initializes a TDecision method that sets the passed-in value as the result value and returns trueValue.</para>
/// <para>Инициализирует TDecision метод, устанавливающий переданное значение в качестве результирующего и возвращающий значение trueValue.</para>
/// <para>Assigns the <paramref name="value"/> to the result and returns <see langword="true"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

My bad. Change true to the true value. Because a user defines its true value itself
returns true value

@@ -71,8 +80,8 @@ public TDecision SetAndReturnTrue(TResult value)
}

/// <summary>
/// <para>Initializes a TDecision method that sets the passed-in value as the result value and returns falseValue.</para>
/// <para>Инициализирует TDecision метод, устанавливающий переданное значение в качестве результирующего и возвращающий значение falseValue.</para>
/// <para>Assigns the <paramref name="value"/> to the result and returns <see langword="false"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

The same as above

@@ -82,8 +91,8 @@ public TDecision SetAndReturnFalse(TResult value)
}

/// <summary>
/// <para>Initializes a TDecision method that sets the first passed-in from IList value as the result value and returns trueValue.</para>
/// <para>Инициализирует TDecision метод, устанавливающий первое переданное из IList значение в качестве результирующего и возвращающий значение trueValue.</para>
/// <para>Assigns the <paramref name="list[0]"/> to the result and returns <see langword="true"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

The same as above

@@ -93,8 +102,8 @@ public TDecision SetFirstAndReturnTrue(IList<TResult> list)
}

/// <summary>
/// <para>Initializes a TDecision method that sets the first passed-in from IList value as the result value and returns falseValue.</para>
/// <para>Инициализирует TDecision метод, устанавливающий первое значение IList в качестве результирующего и возвращающий значение falseValue.</para>
/// <para>Assigns the <paramref name="list[0]"/> to the result and returns <see langword="false"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

The same as above

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Assigns the <paramref name="list[0]"/> to the result and returns <see langword="false"/>.</para>
/// <para>Assigns the <paramref name="list[0]"/> to the result and returns false value.</para>

Corrected
@@ -6,12 +6,16 @@
namespace Platform.Setters
{
/// <summary>
/// <para>Represents a base implementation for an setter that allows you to set a passed value as the result value.</para>
/// <para>Представляет базовую реализацию для установщика, который позволяет установить переданное ему значение в качестве результирующего значения.</para>
/// <para>Provides a base class that allows you to set a passed value as the result value.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Provides a base class that allows you to set a passed value as the result value.</para>
/// <para>Provides a base class that allows to set a passed value as the result value.</para>

/// </summary>
/// <typeparam name="TResult"><para>The type of result value.</para><para>Тип результирующего значения.</para></typeparam>
/// <typeparam name="TResult">
/// <para>The type of result value.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>The type of result value.</para>
/// <para>The type of a result value.</para>

/// <param name="defaultValue">
/// <para>A default result value.</para>
/// <para>Результирующее значение по умолчанию.</para>
/// </param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected SetterBase(TResult defaultValue) => _result = defaultValue;

/// <summary>
/// <para>Sets the passed value as the result.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Sets the passed value as the result.</para>
/// <para>Sets the <paramref name="value"/> as the result.</para>

@@ -42,29 +48,29 @@ public Setter(TDecision trueValue, TDecision falseValue, TResult defaultValue)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a new instance of the Setter class.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Initializes a new instance of the Setter class.</para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult, TDecision}"/> class.</para>

/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Setter(TDecision trueValue, TDecision falseValue) : this(trueValue, falseValue, default) { }

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a new instance of the Setter class with the <paramref name="defaultValue"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Initializes a new instance of the Setter class with the <paramref name="defaultValue"/>.</para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult, TDecision}"/> class with the <paramref name="defaultValue"/>.</para>

@@ -74,8 +80,8 @@ public TDecision SetAndReturnTrue(TResult value)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Assigns the <paramref name="value"/> to the result and returns <see langword="false value"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Assigns the <paramref name="value"/> to the result and returns <see langword="false value"/>.</para>
/// <para>Assigns the <paramref name="value"/> to the result and returns false value.</para>

@@ -85,8 +91,8 @@ public TDecision SetAndReturnFalse(TResult value)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Assigns the <paramref name="list[0]"/> to the result and returns <see langword="true value"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Assigns the <paramref name="list[0]"/> to the result and returns <see langword="true value"/>.</para>
/// <para>Assigns the <paramref name="list[0]"/> to the result and returns true value.</para>

@@ -93,8 +102,8 @@ public TDecision SetFirstAndReturnTrue(IList<TResult> list)
}

/// <summary>
/// <para>Initializes a TDecision method that sets the first passed-in from IList value as the result value and returns falseValue.</para>
/// <para>Инициализирует TDecision метод, устанавливающий первое значение IList в качестве результирующего и возвращающий значение falseValue.</para>
/// <para>Assigns the <paramref name="list[0]"/> to the result and returns <see langword="false"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Assigns the <paramref name="list[0]"/> to the result and returns <see langword="false"/>.</para>
/// <para>Assigns the <paramref name="list[0]"/> to the result and returns false value.</para>

/// Initializes a new <see cref="Setter"/> instance.
/// </para>
/// <para></para>
/// <para>Initializes a new instance of the Setter class.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Initializes a new instance of the Setter class.</para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult}"/> class.</para>

/// Initializes a new <see cref="Setter"/> instance.
/// </para>
/// <para></para>
/// <para>Initializes a new instance of the Setter class.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Initializes a new instance of the Setter class.</para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult}"/> class.</para>

@qwasd3lol qwasd3lol changed the title Added comments Commenting Setters Nov 22, 2021
corrected translation
Copy link
Member

@FreePhoenix888 FreePhoenix888 left a comment

Choose a reason for hiding this comment

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

Methods do not return false and true boolean values. They return filed values that are set in the constructor and have TDecision Type

@@ -6,47 +6,57 @@
namespace Platform.Setters
{
/// <summary>
/// <para>Represents a base implementation for an setter that allows you to set a passed value as the result value.</para>
/// <para>Представляет базовую реализацию для установщика, который позволяет установить переданное ему значение в качестве результирующего значения.</para>
/// <para>Provides a base class that allows to set a passed value as the result value.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Let us use result instead of result value :) Less words, the same meaning

csharp/Platform.Setters/SetterBase.cs Outdated Show resolved Hide resolved
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected SetterBase() { }

/// <summary>
/// <para>Initializes a new instance of the SetterBase class using the passed-in value as the default result value.</para>
/// <para>Инициализирует новый экземпляр класса SetterBase, используя переданное значение в качестве результирующего по умолчанию.</para>
/// <para>Initializes a new instance of the <see cref="SetterBase{TResult}"/> class using the passed-in value as the default result value.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Initializes a new instance of the <see cref="SetterBase{TResult}"/> class using the passed-in value as the default result value.</para>
/// <para>Initializes a new instance of the <see cref="SetterBase"/> class using the passed-in value as the default result value.</para>

Copy link
Member

Choose a reason for hiding this comment

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

Change passed-in value to the paramref

[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected SetterBase(TResult defaultValue) => _result = defaultValue;

/// <summary>
/// <para>Sets the passed value as the result.</para>
/// <para>Sets a <paramref name="value"/> as the result.</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.

Change according to the Russian version

/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult, TDecision}"/> class with the <paramref name="defaultValue"/>.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult, TDecision}"/>, со значением <paramref name="defaultValue"/> в качестве результирующего по умолчанию.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult, TDecision}"/>, со значением <paramref name="defaultValue"/> в качестве результирующего по умолчанию.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult, TDecision}"/>, со значением <paramref name="defaultValue"/> в качестве результата по умолчанию.</para>

/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Assigns the <paramref name="value"/> to the result and returns false value.</para>
/// <para>Присваивает результату значение <paramref name="value"/> и возвращает <see langword="false value"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Присваивает результату значение <paramref name="value"/> и возвращает <see langword="false value"/>.</para>
/// <para>Присваивает результату значение <paramref name="value"/> и возвращает ложь-значение.</para>

qwasd3lol and others added 3 commits November 23, 2021 17:41
Co-authored-by: FreePhoenix888 <66206278+FreePhoenix888@users.noreply.github.com>
@@ -70,7 +70,7 @@ public Setter(TDecision trueValue, TDecision falseValue, TResult defaultValue)

/// <summary>
/// <para>Assigns the <paramref name="value"/> to the result and returns true value.</para>
/// <para>Присваивает результату значение <paramref name="value"/> и возвращает <see langword="true value"/>.</para>
/// <para>Присваивает результату значение <paramref name="value"/> и возвращает правда-значение.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Maybe истина-значение?

/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected SetterBase() { }

/// <summary>
/// <para>Initializes a new instance of the SetterBase class using the passed-in value as the default result value.</para>
/// <para>Инициализирует новый экземпляр класса SetterBase, используя переданное значение в качестве результирующего по умолчанию.</para>
/// <para>Initializes a new instance of the <see cref="SetterBase{TResult}"/> class using the <paramref name="defaultValue"/> as the default result.</para>
Copy link
Member

Choose a reason for hiding this comment

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

SetterBase does not have type parameters

/// <para>Тип результирующего значения.</para>
/// </typeparam>
/// <typeparam name="TDecision">
/// <para>The type of a value which will be used to make the decision.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>The type of a value which will be used to make the decision.</para>
/// <para>The type of a true and false value.</para>

/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Setter(TDecision trueValue, TDecision falseValue) : this(trueValue, falseValue, default) { }

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult, TDecision}"/> class with the <paramref name="defaultValue"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Change according to the Russian version

@@ -55,7 +55,7 @@ public Setter(TDecision trueValue, TDecision falseValue, TResult defaultValue)
public Setter(TDecision trueValue, TDecision falseValue) : this(trueValue, falseValue, default) { }

/// <summary>
/// <para>Initializes a new instance of the <see cref="Setter{TResult, TDecision}"/> class with the <paramref name="defaultValue"/>.</para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult, TDecision}"/> class with the <paramref name="defaultValue"/> as result.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Do not forget about article

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you need an article here?

Copy link
Member

Choose a reason for hiding this comment

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

as a result

@@ -6,47 +6,57 @@
namespace Platform.Setters
{
/// <summary>
/// <para>Represents a base implementation for an setter that allows you to set a passed value as the result value.</para>
/// <para>Представляет базовую реализацию для установщика, который позволяет установить переданное ему значение в качестве результирующего значения.</para>
/// <para>Provides a base class that allows to set a passed value as the result.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Provides a base class that allows to set a passed value as the result.</para>
/// <para>Represents a base implementation for an setter that allows to set a passed value as the result.</para>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In English, the article "an" is used before vowels

/// <para>Represents a base implementation for an setter that allows you to set a passed value as the result value.</para>
/// <para>Представляет базовую реализацию для установщика, который позволяет установить переданное ему значение в качестве результирующего значения.</para>
/// <para>Provides a base class that allows to set a passed value as the result.</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.

Suggested change
/// <para>Предоставляет базовый класс, который позволяет установить переданное ему значение в качестве результата.</para>
/// <para>Представляет базовую реализацию для установщика, который позволяет установить переданное ему значение в качестве результата.</para>

/// <para>Initializes a new instance of the SetterBase class using the passed-in value as the default result value.</para>
/// <para>Инициализирует новый экземпляр класса SetterBase, используя переданное значение в качестве результирующего по умолчанию.</para>
/// <para>Initializes a new instance of the <see cref="SetterBase"/> class using the <paramref name="defaultValue"/> as the default result.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="SetterBase"/>, используя <paramref name="defaultValue"/> в качестве результата.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Инициализирует новый экземпляр класса <see cref="SetterBase"/>, используя <paramref name="defaultValue"/> в качестве результата.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="SetterBase"/>, используя <paramref name="defaultValue"/> в качестве результата по умолчанию.</para>

Copy link
Member

@Konard Konard left a comment

Choose a reason for hiding this comment

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

A build fix.

csharp/Platform.Setters/Setter[TResult, TDecision].cs Outdated Show resolved Hide resolved
Co-authored-by: Konstantin Dyachenko <konard@me.com>
Copy link
Member

@Konard Konard left a comment

Choose a reason for hiding this comment

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

Final touches.

csharp/Platform.Setters/Setter[TResult, TDecision].cs Outdated Show resolved Hide resolved
csharp/Platform.Setters/Setter[TResult, TDecision].cs Outdated Show resolved Hide resolved
csharp/Platform.Setters/Setter[TResult, TDecision].cs Outdated Show resolved Hide resolved
csharp/Platform.Setters/Setter[TResult, TDecision].cs Outdated Show resolved Hide resolved
csharp/Platform.Setters/Setter[TResult, TDecision].cs Outdated Show resolved Hide resolved
csharp/Platform.Setters/Setter[TResult, TDecision].cs Outdated Show resolved Hide resolved
csharp/Platform.Setters/Setter[TResult].cs Outdated Show resolved Hide resolved
csharp/Platform.Setters/Setter[TResult].cs Outdated Show resolved Hide resolved
Copy link
Member

@Konard Konard left a comment

Choose a reason for hiding this comment

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

We are closer to merge.

/// <remarks>
/// Must be class, not struct (in order to persist access to Result property value).
/// <para>Must be class, not struct (in order to persist access to Result property value). <see href="https://gist.github.com/Konard/c62453978f5cca1fc48b44f74050fd80">Example</see>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Must be class, not struct (in order to persist access to Result property value). <see href="https://gist.github.com/Konard/c62453978f5cca1fc48b44f74050fd80">Example</see>.</para>
/// <para>Must be class, not struct (in order to persist access to Result property value, when method is passed by reference as handler).<see href="https://gist.github.com/Konard/c62453978f5cca1fc48b44f74050fd80">Example</see>.</para>

/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult, TDecision}"/> class with the <paramref name="defaultValue"/> as a result.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult, TDecision}"/>, используя значение <paramref name="defaultValue"/> в качестве результата по умолчанию.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult, TDecision}"/>, используя значение <paramref name="defaultValue"/> в качестве результата по умолчанию.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult, TDecision}"/>, инициализируя <see cref="Result"/> значением <paramref name="defaultValue"/>.</para>

[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Setter(TDecision trueValue, TDecision falseValue) : this(trueValue, falseValue, default) { }

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult, TDecision}"/> class with the <paramref name="defaultValue"/> as a result.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Initializes a new instance of the <see cref="Setter{TResult, TDecision}"/> class with the <paramref name="defaultValue"/> as a result.</para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult, TDecision}"/> class with the <see cref="Result"/> initialized to <paramref name="defaultValue"/>.</para>

/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public Setter() { }

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the <paramref name="value"/> to the result and returns the value indicating true.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Sets the <paramref name="value"/> to the result and returns the value indicating true.</para>
/// <para>Sets the <paramref name="value"/> to the <see cref="Result"/> and returns the value indicating true.</para>

/// </summary>
/// <param name="value">
/// <para>Result value.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Result value.</para>
/// <para>A result value.</para>

/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the <paramref name="value"/> to the result and returns the value indicating false.</para>
/// <para>Устанавливает <paramref name="value"/> в качестве результата и возвращает значение означающее ложь.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Устанавливает <paramref name="value"/> в качестве результата и возвращает значение означающее ложь.</para>
/// <para>Устанавливает <paramref name="value"/> в качестве <see cref="Result"/> и возвращает значение означающее ложь.</para>

/// </summary>
/// <param name="value">
/// <para>Result value.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Result value.</para>
/// <para>A result value.</para>

/// </summary>
/// <param name="list[0]">
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <param name="list[0]">
/// <param name="list">

/// </summary>
/// <param name="list[0]">
/// <para>The first item in the list.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>The first item in the list.</para>
/// <para>A list from which the first item will be set as <see cref="Result"/>.</para>

/// </summary>
/// <param name="list[0]">
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <param name="list[0]">
/// <param name="list">

Comment on lines 22 to 17
public readonly TDecision TrueValue;
public readonly TDecision FalseValue;
Copy link
Member

Choose a reason for hiding this comment

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

This readonly fields should be commented as well.

/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the <paramref name="value"/> to the <see cref="Result"/> and returns the value indicating true.</para>
/// <para>Устанавливает <paramref name="value"/> в качестве <see cref="Result"/> и возвращает значение означающее истину.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Устанавливает <paramref name="value"/> в качестве <see cref="Result"/> и возвращает значение означающее истину.</para>
/// <para>Устанавливает <paramref name="value"/> в <see cref="Result"/> и возвращает значение означающее истину.</para>

Copy link
Member

Choose a reason for hiding this comment

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

Looks unclear

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Устанавливает <paramref name="value"/> в качестве <see cref="Result"/> и возвращает значение означающее истину.</para>
/// <para>Устанавливает <paramref name="value"/> в качестве результата и возвращает значение означающее истину.</para>

/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the <paramref name="value"/> to the <see cref="Result"/> and returns the value indicating false.</para>
/// <para>Устанавливает <paramref name="value"/> в качестве <see cref="Result"/> и возвращает значение означающее ложь.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

@@ -73,9 +118,17 @@ public TDecision SetAndReturnFalse(TResult value)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the <paramref name="list[0]"/> to the result and returns the value indicating true.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Sets the <paramref name="list[0]"/> to the result and returns the value indicating true.</para>
/// <para>Sets the <paramref name="list"/> to the result and returns the value indicating true.</para>

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Sets the <paramref name="list[0]"/> to the result and returns the value indicating true.</para>
/// <para>Sets the first <paramref name="list"/> element as the result and returns the value indicating true.</para>

@Konard , Should we use ref to the True field instead of using words the value indicating true?

/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the <paramref name="list[0]"/> to the result and returns the value indicating true.</para>
/// <para>Устанавливает <paramref name="list[0]"/> в качестве результата и возвращает значение означающее истину.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Устанавливает <paramref name="list[0]"/> в качестве результата и возвращает значение означающее истину.</para>
/// <para>Устанавливает <paramref name="list"/> в качестве результата и возвращает значение означающее истину.</para>

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Устанавливает <paramref name="list[0]"/> в качестве результата и возвращает значение означающее истину.</para>
/// <para>Устанавливает первый элемент из <paramref name="list"/> в качестве результата и возвращает значение означающее истину.</para>

Copy link
Member

@Konard Konard left a comment

Choose a reason for hiding this comment

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

Please note, that if we to do change something in one place, it may be useful to apply such change in all similar places. This statement is true because usually we try to preserve same style across all code files in all repositories.

.gitignore Outdated
Comment on lines 342 to 343
csharp/.DS_Store
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.DS_Store
csharp/.DS_Store
.DS_Store

No need to add to .gitignore each file in repository with the same name pattern.
Git ignore works via pattern matching. So when you write .DS_Store that means file or folder with this name in any folder.
After patterns to exclude files from repository are added to .gitignore you should delete these files. For example files:

.DS_Store
csharp/.DS_Store

Should be deleted.

public class Setter<TResult, TDecision> : SetterBase<TResult>
{
/// </summary>
/// <param name="TrueValue">
/// <para>A value that indicates true.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>A value that indicates true.</para>
/// <para>A read-only field that represents a value that indicates true.</para>


/// </summary>
/// <param name="FalseValue">
/// <para>A value that indicates false.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>A value that indicates false.</para>
/// <para>A read-only field that represents a value that indicates false.</para>

/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult, TDecision}"/> class using passed-in <paramref name="trueValue"/> and <paramref name="falseValue"/> as indicating true and false.</para>
/// <para>Иницаилизирует новый экземпляр класса <see cref="Setter{TResult, TDecision}"/>, используя переданные значения <paramref name="trueValue"/> и <paramref name="falseValue"/> в качестве обозначающих истину и ложь.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Иницаилизирует новый экземпляр класса <see cref="Setter{TResult, TDecision}"/>, используя переданные значения <paramref name="trueValue"/> и <paramref name="falseValue"/> в качестве обозначающих истину и ложь.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult, TDecision}"/>, используя переданные значения <paramref name="trueValue"/> и <paramref name="falseValue"/> в качестве обозначающих истину и ложь.</para>

/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the <paramref name="value"/> to the <see cref="Result"/> and returns the value indicating true.</para>
/// <para>Устанавливает <paramref name="value"/> как результат и возвращает значение обозначающее истину.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Устанавливает <paramref name="value"/> как результат и возвращает значение обозначающее истину.</para>
/// <para>Устанавливает <paramref name="value"/> в <see cref="Result"/> и возвращает значение обозначающее истину.</para>

/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the <paramref name="list"/> to the result and returns the value indicating true.</para>
/// <para>Устанавливает <paramref name="list"/> в качестве результата и возвращает значение означающее истину.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Устанавливает <paramref name="list"/> в качестве результата и возвращает значение означающее истину.</para>
/// <para>Устанавливает первый элемент из <paramref name="list"/> в <see cref="Result"/> и возвращает значение означающее истину.</para>

@@ -73,9 +129,17 @@ public TDecision SetAndReturnFalse(TResult value)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the <paramref name="list"/> to the result and returns the value indicating true.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Sets the <paramref name="list"/> to the result and returns the value indicating true.</para>
/// <para>Sets the first element from <paramref name="list"/> to the <see cref="Result"/> and returns the value indicating true.</para>

/// </summary>
/// <param name="list">
/// <para>A list from which the first item will be set as <see cref="Result"/>.</para>
/// <para>Список, первый элемент которого будет установлен в качестве <see cref="Result"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Список, первый элемент которого будет установлен в качестве <see cref="Result"/>.</para>
/// <para>Список, первый элемент которого будет установлен в <see cref="Result"/>.</para>

/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the <paramref name="list"/> to the result and returns the value indicating false.</para>
/// <para>Устанавливает <paramref name="list"/> в качестве результата и возвращает значение означающее ложь.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Устанавливает <paramref name="list"/> в качестве результата и возвращает значение означающее ложь.</para>
/// <para>Устанавливает первый элемент из <paramref name="list"/> в <see cref="Result"/> и возвращает значение означающее ложь.</para>

/// </para>
/// <para></para>
/// <para>Represents a setter that allows to set a passed value as the result. This setter variant has <typeparamref name="TDecision"/> preset to <see cref="Boolean"/>.</para>
/// <para>Представляет установщик, позволяющий устанавливать переданное ему значение в качестве результата. Для этого варианта установщика <typeparamref name="TDecision"/> предустановлен на <see cref="Boolean"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Представляет установщик, позволяющий устанавливать переданное ему значение в качестве результата. Для этого варианта установщика <typeparamref name="TDecision"/> предустановлен на <see cref="Boolean"/>.</para>
/// <para>Представляет установщик, позволяющий устанавливать переданное ему значение в качестве результата. Для этого варианта установщика <typeparamref name="TDecision"/> предустановлен в <see cref="Boolean"/>.</para>

Copy link
Member

@Konard Konard left a comment

Choose a reason for hiding this comment

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

Final touches before the merge.

Comment on lines 22 to 23
/// </summary>
/// <param name="TrueValue">
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// </summary>
/// <param name="TrueValue">
/// <summary>

This was a closing tag, here we should use an opening tag for summary.

/// <param name="TrueValue">
/// <para>A read-only field that represents a value that indicates true.</para>
/// <para>Поле только для чтения, представляющее значение обозначающее истину.</para>
/// </param>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// </param>
/// </summary>

Comment on lines 29 to 30
/// </summary>
/// <param name="FalseValue">
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// </summary>
/// <param name="FalseValue">
/// <summary>

/// <param name="FalseValue">
/// <para>A read-only field that represents a value that indicates false.</para>
/// <para>Поле только для чтения, представляющее значение обозначающее ложь.</para>
/// </param>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// </param>
/// </summary>

@@ -62,9 +110,17 @@ public TDecision SetAndReturnTrue(TResult value)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the first element from <paramref name="value"/> to the <see cref="Result"/> and returns the value indicating false.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Sets the first element from <paramref name="value"/> to the <see cref="Result"/> and returns the value indicating false.</para>
/// <para>Sets the <paramref name="value"/> to the <see cref="Result"/> and returns the value indicating false.</para>

/// </para>
/// <para></para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult}"/> class with the <paramref name="defaultValue"/> as a result.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult}"/> с <paramref name="defaultValue"/> в качестве результата.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult}"/> с <paramref name="defaultValue"/> в качестве результата.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult, bool}"/> с <paramref name="defaultValue"/> в качестве результата.</para>

/// </para>
/// <para></para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult}"/> class with the <paramref name="defaultValue"/> as a result.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult}"/> с <paramref name="defaultValue"/> в качестве результата.</para>
/// </summary>
/// <param name="defaultValue">
/// <para>A default value.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>A default value.</para>
/// <para>A default result value.</para>

/// </summary>
/// <param name="defaultValue">
/// <para>A default value.</para>
/// <para></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.

Suggested change
/// <para>Значение по умолчанию.</para>
/// <para>Результирующее значение по умолчанию.</para>

/// Initializes a new <see cref="Setter"/> instance.
/// </para>
/// <para></para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult}"/> class.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Initializes a new instance of the <see cref="Setter{TResult}"/> class.</para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult, bool}"/> class.</para>

/// </para>
/// <para></para>
/// <para>Initializes a new instance of the <see cref="Setter{TResult}"/> class.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult}"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult}"/>.</para>
/// <para>Инициализирует новый экземпляр класса <see cref="Setter{TResult, bool}"/>.</para>

Copy link
Member

@Konard Konard left a comment

Choose a reason for hiding this comment

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

Remove these line in all edited files:

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

@@ -84,9 +146,17 @@ public TDecision SetFirstAndReturnTrue(IList<TResult> list)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the <paramref name="list"/> to the <see cref="Result"/> and returns the value indicating false.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Sets the <paramref name="list"/> to the <see cref="Result"/> and returns the value indicating false.</para>
/// <para> Sets the first element from <paramref name="list"/> to the <see cref="Result"/> and returns the value indicating false.</para>

csharp/Platform.Setters/Setter[TResult].cs Show resolved Hide resolved
Copy link
Member

@Konard Konard left a comment

Choose a reason for hiding this comment

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

Few more articles should be added.

@@ -73,9 +126,17 @@ public TDecision SetAndReturnFalse(TResult value)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the first element from <paramref name="list"/> to the <see cref="Result"/> and returns the value indicating true.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Sets the first element from <paramref name="list"/> to the <see cref="Result"/> and returns the value indicating true.</para>
/// <para>Sets the first element from the <paramref name="list"/> to the <see cref="Result"/> and returns the value indicating true.</para>

/// </summary>
/// <param name="list">
/// <para>A list from which the first item will be set to <see cref="Result"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>A list from which the first item will be set to <see cref="Result"/>.</para>
/// <para>A list from which the first item will be set to the <see cref="Result"/>.</para>

@@ -84,9 +145,17 @@ public TDecision SetFirstAndReturnTrue(IList<TResult> list)
}

/// <summary>
/// <para>Gets result value.</para>
/// <para>Возвращает результирующее значение.</para>
/// <para>Sets the first element from<paramref name="list"/> to the <see cref="Result"/> and returns the value indicating false.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>Sets the first element from<paramref name="list"/> to the <see cref="Result"/> and returns the value indicating false.</para>
/// <para>Sets the first element from the <paramref name="list"/> to the <see cref="Result"/> and returns the value indicating false.</para>

/// </summary>
/// <param name="list">
/// <para>A list from which the first item will be set to <see cref="Result"/>.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// <para>A list from which the first item will be set to <see cref="Result"/>.</para>
/// <para>A list from which the first item will be set to the <see cref="Result"/>.</para>

@Konard Konard merged commit 55d1455 into main Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants