-
Notifications
You must be signed in to change notification settings - Fork 7
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
base: main
Are you sure you want to change the base?
Vetka2 #124
Changes from all commits
cc700fa
56e820f
e0895eb
6e0e5f2
b43a1d1
897505f
b58687a
b34c7e5
881a3b3
a651140
9030efa
0742ed8
8831069
f52250a
e686a1d
2d2c8cc
c0a79e7
eb1d586
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,17 +16,37 @@ public static class ICollectionExtensions | |
/// <para>Checking collection for empty.</para> | ||
/// <para>Проверяет коллекцию на пустоту.</para> | ||
/// </summary> | ||
/// <typeparam name="T"> | ||
/// <para>The elements collection data type.</para> | ||
/// <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>The collection to check.</para> | ||
/// <para>Коллекция для проверки.</para> | ||
/// </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> | ||
/// <para>Переменная типа <see cref="bool"/> равна false, если коллекция пуста, иначе возвращает true.</para> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
/// </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.<see cref="default"/>.</para> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
/// <para>Проверяет являются ли все элементы коллекции.<see cref="default"/>.</para> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
/// </summary> | ||
/// <typeparam name="T"> | ||
/// <para>The elements collection data type.</para> | ||
/// <para>Тип данных элементов коллекции.</para> | ||
/// </typeparam> | ||
/// <param name="collection"> | ||
/// <para>The collection to check.</para> | ||
/// <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> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
/// <para>Возвращает переменную типа <see cref="bool"/> равной true если все элементы коллекции являются значениями по умолчанию иначе возвращает false.</para> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
/// </returns> | ||
[MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
public static bool AllEqualToDefault<T>(this ICollection<T> collection) | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good
There was a problem hiding this comment.
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.