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

Vetka2 #124

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Vetka2 #124

wants to merge 18 commits into from

Conversation

Hole-code
Copy link
Contributor

No description provided.

@TwinkmrMask
Copy link
Member

TwinkmrMask commented Jun 23, 2021

You need to put dots at the end of comments, as well as use the word element in the plural, since we are talking about a whole collection.

Copy link
Member

@TwinkmrMask TwinkmrMask left a comment

Choose a reason for hiding this comment

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

In some places, your mistakes are repeated, find them yourself, I will not show them to everyone

@@ -16,17 +16,37 @@ public static class ICollectionExtensions
/// <para>Checking collection for empty.</para>
/// <para>Проверяет коллекцию на пустоту.</para>
/// </summary>
/// <typeparam name="T">
/// <para>Collection element data type.</para>
Copy link
Member

@TwinkmrMask TwinkmrMask Jun 24, 2021

Choose a reason for hiding this comment

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

The elements collection data type. may be.

/// <param name="collection">
/// <para>Method takes an elements collection of <see cref="ICollection<T>"/> type.</para>
/// <para>Метода принимает колекцию элементов <see cref="ICollection<T>"/> типа.</para>
/// <para>Метод принимает колекцию элементов <see cref="ICollection<T>"/> типа.</para>
Copy link
Member

@TwinkmrMask TwinkmrMask Jun 24, 2021

Choose a reason for hiding this comment

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

You shouldn't say that this is a method, just write what it does
You need to remove the word Method


/// <summary>
/// <para>Checks if all elements of the collection are standard values of type.</para>
/// <para>Проверяет являются ли все элементы коллекции значениями по умолчанию типа.</para>
Copy link
Member

@TwinkmrMask TwinkmrMask Jun 24, 2021

Choose a reason for hiding this comment

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

You can say <see cref="default"/> instead are standard values of type.

/// </param>
/// <returns>
/// <para>Returns a <see cref="bool"/> type variable equal to False if the collection is empty else returns true.</para>
/// <para>Returns a <see cref="bool"/> type variable equal to false if the collection is empty else returns 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.

You can say just The <see cref="bool"/> type variable equal to false if the collection is empty else returns true.

Copy link
Member

@TwinkmrMask TwinkmrMask left a comment

Choose a reason for hiding this comment

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

You left one mistake

@@ -17,23 +17,23 @@ public static class ICollectionExtensions
/// <para>Проверяет коллекцию на пустоту.</para>
/// </summary>
/// <typeparam name="T">
/// <para>Collection element data type.</para>
/// <para>Collection elements data type.</para>
Copy link
Member

@TwinkmrMask TwinkmrMask Jun 24, 2021

Choose a reason for hiding this comment

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

Ah shit, here we go again

Copy link
Member

Choose a reason for hiding this comment

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

Also you made a mistake in the translation into Russian

/// <para>Тип данных элемента коллекций.</para>
/// </typeparam>
/// <param name="collection">
/// <para>Method takes an elements collection of <see cref="ICollection<T>"/> type.</para>
/// <para>Метод принимает колекцию элементов <see cref="ICollection<T>"/> типа.</para>
/// <para>Takes an elements collection of <see cref="ICollection<T>"/> type.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Good

/// </param>
/// <returns>
/// <para>Returns a <see cref="bool"/> type variable equal to false if the collection is empty else returns true.</para>
/// <para>Возвращает переменную типа <see cref="bool"/> равной false если коллекция пустая иначе возвращает true.</para>
/// <para>The <see cref="bool"/> type variable equal to false if the collection is empty else returns 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.

Good

Copy link
Member

Choose a reason for hiding this comment

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

The <see cref="bool"/> type variable equal to false if the collection is empty else returns true.->A <see cref="bool"/> value that determines whether the collection is empty.

/// </returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool IsNullOrEmpty<T>(this ICollection<T> collection) => collection == null || collection.Count == 0;

/// <summary>
/// <para>Checks if all elements of the collection are standard values of type.</para>
/// <para>Проверяет являются ли все элементы коллекции значениями по умолчанию типа.</para>
/// <para>Checks if all elements of the collection <see cref="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.

Good

/// <para>Коллекция для проверки.</para>
/// </param>
/// <returns>
/// <para>Returns a variable of type <see cref="bool"/> equal to true if all elements in the collection are default values else returns false.</para>
Copy link
Member

@FreePhoenix888 FreePhoenix888 Jun 25, 2021

Choose a reason for hiding this comment

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

Returns a variable of type <see cref="bool"/> equal to true if all elements in the collection are default values else returns false. -> Gets a <see cref="bool"/> value that determines whether all collection elements values are equal to the default values.

/// </param>
/// <returns>
/// <para>Returns a variable of type <see cref="bool"/> equal to true if all elements in the collection are default values else returns false.</para>
/// <para>Возвращает переменную типа <see cref="bool"/> равной true если все элементы коллекции являются значениями по умолчанию иначе возвращает false.</para>
Copy link
Member

@FreePhoenix888 FreePhoenix888 Jun 25, 2021

Choose a reason for hiding this comment

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

Возвращает переменную типа <see cref="bool"/> равной true если все элементы коллекции являются значениями по умолчанию иначе возвращает false.->Возвращает значение типа <see cref="bool"/>, определяющее, равны ли все значения элементов коллекции <see cref="default"/> значениям.



/// <summary>
/// <para>Checks if all elements of the collection.<see cref="default"/>.</para>
Copy link
Member

@FreePhoenix888 FreePhoenix888 Jun 25, 2021

Choose a reason for hiding this comment

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

Checks if all elements of the collection.<see cref="default"/>. ->Checks if all collection elements values are equal to the <see cref="default"/> values.


/// <summary>
/// <para>Checks if all elements of the collection.<see cref="default"/>.</para>
/// <para>Проверяет являются ли все элементы коллекции.<see cref="default"/>.</para>
Copy link
Member

@FreePhoenix888 FreePhoenix888 Jun 25, 2021

Choose a reason for hiding this comment

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

Проверяет являются ли все элементы коллекции.<see cref="default"/>.->Проверяет равны ли все значения элементов коллекции <see cref="default"/> значениям.

/// <para>Returns a <see cref="bool"/> type variable equal to False if the collection is empty else returns true.</para>
/// <para>Возвращает переменную типа <see cref="bool"/> равной false если коллекция пустая иначе возвращает true.</para>
/// <para>The <see cref="bool"/> type variable equal to false if the collection is empty else returns true.</para>
/// <para>Переменная типа <see cref="bool"/> равна false, если коллекция пуста, иначе возвращает 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.

Переменная типа <see cref="bool"/> равна false, если коллекция пуста, иначе возвращает true.->Значение типа <see cref="bool"/>, определяющее, пуста ли коллекция.

/// <para>Проверяет являются ли все элементы коллекции значениями по умолчанию типа.</para>
/// </summary>
/// <typeparam name="T">
/// <para>Collection elements data type.</para>
Copy link
Member

Choose a reason for hiding this comment

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

Here you have a collection in the singular

/// </summary>
/// <typeparam name="T">
/// <para>Collection elements data type.</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.

And here is a collection in the plural, please decide

csharp/Platform.Collections/ICollectionExtensions.cs Outdated Show resolved Hide resolved
@FreePhoenix888 FreePhoenix888 changed the base branch from master to main March 27, 2022 07:14
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