You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 18, 2023. It is now read-only.
/// Adds an object to the end of the <see cref="T:System.Collections.ObjectModel.Collection`1"></see>.
21
+
/// </summary>
22
+
/// <param name="item">The object to be added to the end of the <see cref="T:System.Collections.ObjectModel.Collection`1"></see>. The value can be null for reference types.</param>
17
23
publicnewvoidAdd(Titem)
18
24
{
19
25
if(Items.Contains(item))return;
@@ -22,39 +28,71 @@ public abstract class WhatsAppApiCollection<T> : Collection<T?>, IPrintableColle
22
28
23
29
#region AddRange
24
30
25
-
publicvoidAddRange(IEnumerable<T>enumerable)
31
+
/// <summary>
32
+
/// Adds the elements of the specified collection to the end of the <see cref="T:System.Collections.Generic.IEnumerable`1"></see>.
33
+
/// </summary>
34
+
/// <param name="collection">The collection whose elements should be added to the end of the <see cref="T:System.Collections.Generic.IEnumerable`1"></see>. The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type.</param>
35
+
/// <exception cref="T:System.ArgumentNullException"><paramref name="collection">collection</paramref> is null.</exception>
// ReSharper disable once ForCanBeConvertedToForeach
29
42
for(inti=0;i<list.Count;i++)
30
43
if(!Items.Contains(list[i]))
31
44
base.Add(list[i]);
32
45
}
33
-
publicvoidAddRange(IList<T>enumerable)
46
+
47
+
/// <summary>
48
+
/// Adds the elements of the specified collection to the end of the <see cref="T:System.Collections.Generic.IList`1"></see>.
49
+
/// </summary>
50
+
/// <param name="collection">The collection whose elements should be added to the end of the <see cref="T:System.Collections.Generic.IList`1"></see>. The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type.</param>
51
+
/// <exception cref="T:System.ArgumentNullException"><paramref name="collection">collection</paramref> is null.</exception>
// ReSharper disable once ForCanBeConvertedToForeach
36
-
for(inti=0;i<enumerable.Count;i++)
37
-
if(!Items.Contains(enumerable[i]))
38
-
base.Add(enumerable[i]);
57
+
for(inti=0;i<collection.Count;i++)
58
+
if(!Items.Contains(collection[i]))
59
+
base.Add(collection[i]);
39
60
}
40
-
publicvoidAddRange(ICollection<T>enumerable)
61
+
/// <summary>
62
+
/// Adds the elements of the specified collection to the end of the <see cref="T:System.Collections.Generic.ICollection`1"></see>.
63
+
/// </summary>
64
+
/// <param name="collection">The collection whose elements should be added to the end of the <see cref="T:System.Collections.Generic.ICollection`1"></see>. The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type.</param>
65
+
/// <exception cref="T:System.ArgumentNullException"><paramref name="collection">collection</paramref> is null.</exception>
// ReSharper disable once ForCanBeConvertedToForeach
44
71
for(inti=0;i<list.Count;i++)
45
72
if(!Items.Contains(list[i]))
46
73
base.Add(list[i]);
47
74
}
48
-
publicvoidAddRange(IReadOnlyList<T>enumerable)
75
+
/// <summary>
76
+
/// Adds the elements of the specified collection to the end of the <see cref="T:System.Collections.Generic.IReadOnlyList`1"></see>.
77
+
/// </summary>
78
+
/// <param name="collection">The collection whose elements should be added to the end of the <see cref="T:System.Collections.Generic.IReadOnlyList`1"></see>. The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type.</param>
79
+
/// <exception cref="T:System.ArgumentNullException"><paramref name="collection">collection</paramref> is null.</exception>
/// Adds the elements of the specified collection to the end of the <see cref="T:System.Collections.Generic.IReadOnlyCollection`1"></see>.
90
+
/// </summary>
91
+
/// <param name="collection">The collection whose elements should be added to the end of the <see cref="T:System.Collections.Generic.IReadOnlyCollection`1"></see>. The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type.</param>
92
+
/// <exception cref="T:System.ArgumentNullException"><paramref name="collection">collection</paramref> is null.</exception>
0 commit comments