|
129 | 129 | <format type="text/markdown"><![CDATA[
|
130 | 130 |
|
131 | 131 | ## Remarks
|
132 |
| - This constructor is an O(`n`) operation, where `n` is the number of elements in `values`. |
| 132 | + This constructor is an `O(n)` operation, where `n` is the number of elements in `values`. |
133 | 133 |
|
134 | 134 | ]]></format>
|
135 | 135 | </remarks>
|
|
176 | 176 | ## Remarks
|
177 | 177 | The first byte in the array represents bits 0 through 7, the second byte represents bits 8 through 15, and so on. The Least Significant Bit of each byte represents the lowest index value: " `bytes` [0] & 1" represents bit 0, " `bytes` [0] & 2" represents bit 1, " `bytes` [0] & 4" represents bit 2, and so on.
|
178 | 178 |
|
179 |
| - This constructor is an O(`n`) operation, where `n` is the number of elements in `bytes`. |
| 179 | + This constructor is an `O(n)` operation, where `n` is the number of elements in `bytes`. |
180 | 180 |
|
181 | 181 | ]]></format>
|
182 | 182 | </remarks>
|
|
222 | 222 | <format type="text/markdown"><![CDATA[
|
223 | 223 |
|
224 | 224 | ## Remarks
|
225 |
| - This constructor is an O(`n`) operation, where `n` is the number of elements in `bits`. |
| 225 | + This constructor is an `O(n)` operation, where `n` is the number of elements in `bits`. |
226 | 226 |
|
227 | 227 | ]]></format>
|
228 | 228 | </remarks>
|
|
267 | 267 | <format type="text/markdown"><![CDATA[
|
268 | 268 |
|
269 | 269 | ## Remarks
|
270 |
| - This constructor is an O(`n`) operation, where `n` is `length`. |
| 270 | + This constructor is an `O(n)` operation, where `n` is `length`. |
271 | 271 |
|
272 | 272 | ]]></format>
|
273 | 273 | </remarks>
|
|
314 | 314 | ## Remarks
|
315 | 315 | The number in the first `values` array element represents bits 0 through 31, the second number in the array represents bits 32 through 63, and so on. The Least Significant Bit of each integer represents the lowest index value: " `values` [0] & 1" represents bit 0, " `values` [0] & 2" represents bit 1, " `values` [0] & 4" represents bit 2, and so on.
|
316 | 316 |
|
317 |
| - This constructor is an O(`n`) operation, where `n` is the number of elements in `values`. |
| 317 | + This constructor is an `O(n)` operation, where `n` is the number of elements in `values`. |
318 | 318 |
|
319 | 319 | ]]></format>
|
320 | 320 | </remarks>
|
|
362 | 362 | <format type="text/markdown"><![CDATA[
|
363 | 363 |
|
364 | 364 | ## Remarks
|
365 |
| - This constructor is an O(`n`) operation, where `n` is `length`. |
| 365 | + This constructor is an `O(n)` operation, where `n` is `length`. |
366 | 366 |
|
367 | 367 | ]]></format>
|
368 | 368 | </remarks>
|
|
413 | 413 | ## Remarks
|
414 | 414 | The bitwise AND operation returns `true` if both operands are `true`, and returns `false` if one or both operands are `false`.
|
415 | 415 |
|
416 |
| - This method is an O(`n`) operation, where `n` is <xref:System.Collections.BitArray.Count%2A>. |
| 416 | + This method is an `O(n)` operation, where `n` is <xref:System.Collections.BitArray.Count%2A>. |
417 | 417 |
|
418 | 418 |
|
419 | 419 |
|
|
475 | 475 |
|
476 | 476 | In contrast, a deep copy of a collection copies the elements and everything directly or indirectly referenced by the elements.
|
477 | 477 |
|
478 |
| - This method is an O(`n`) operation, where `n` is <xref:System.Collections.BitArray.Count%2A>. |
| 478 | + This method is an `O(n)` operation, where `n` is <xref:System.Collections.BitArray.Count%2A>. |
479 | 479 |
|
480 | 480 | ]]></format>
|
481 | 481 | </remarks>
|
|
527 | 527 |
|
528 | 528 | This method uses <xref:System.Array.Copy%2A?displayProperty=nameWithType> to copy the elements.
|
529 | 529 |
|
530 |
| - This method is an O(`n`) operation, where `n` is <xref:System.Collections.BitArray.Count%2A>. |
| 530 | + This method is an `O(n)` operation, where `n` is <xref:System.Collections.BitArray.Count%2A>. |
531 | 531 |
|
532 | 532 |
|
533 | 533 |
|
|
594 | 594 | ## Remarks
|
595 | 595 | <xref:System.Collections.BitArray.Length%2A> and <xref:System.Collections.BitArray.Count%2A> return the same value. <xref:System.Collections.BitArray.Length%2A> can be set to a specific value, but <xref:System.Collections.BitArray.Count%2A> is read-only.
|
596 | 596 |
|
597 |
| - Retrieving the value of this property is an O(1) operation. |
| 597 | + Retrieving the value of this property is an `O(1)` operation. |
598 | 598 |
|
599 | 599 | ]]></format>
|
600 | 600 | </remarks>
|
|
641 | 641 | <format type="text/markdown"><![CDATA[
|
642 | 642 |
|
643 | 643 | ## Remarks
|
644 |
| - This method is an O(1) operation. |
| 644 | + This method is an `O(1)` operation. |
645 | 645 |
|
646 | 646 |
|
647 | 647 |
|
|
717 | 717 |
|
718 | 718 | The enumerator does not have exclusive access to the collection; therefore, enumerating through a collection is intrinsically not a thread-safe procedure. To guarantee thread safety during enumeration, you can lock the collection during the entire enumeration. To allow the collection to be accessed by multiple threads for reading and writing, you must implement your own synchronization.
|
719 | 719 |
|
720 |
| - This method is an O(1) operation. |
| 720 | + This method is an `O(1)` operation. |
721 | 721 |
|
722 | 722 | ]]></format>
|
723 | 723 | </remarks>
|
|
765 | 765 |
|
766 | 766 | A collection that is read-only is simply a collection with a wrapper that prevents modifying the collection; therefore, if changes are made to the underlying collection, the read-only collection reflects those changes.
|
767 | 767 |
|
768 |
| - This method is an O(1) operation. |
| 768 | + This method is an `O(1)` operation. |
769 | 769 |
|
770 | 770 | ]]></format>
|
771 | 771 | </remarks>
|
|
822 | 822 | [!code-csharp[Classic BitArray Example#2](~/samples/snippets/csharp/VS_Snippets_CLR_Classic/classic BitArray Example/CS/source2.cs#2)]
|
823 | 823 | [!code-vb[Classic BitArray Example#2](~/samples/snippets/visualbasic/VS_Snippets_CLR_Classic/classic BitArray Example/VB/source2.vb#2)]
|
824 | 824 |
|
825 |
| - This method is an O(1) operation. |
| 825 | + This method is an `O(1)` operation. |
826 | 826 |
|
827 | 827 | ]]></format>
|
828 | 828 | </remarks>
|
|
874 | 874 |
|
875 | 875 | The C# language uses the [this](~/docs/csharp/language-reference/keywords/this.md) keyword to define the indexers instead of implementing the <xref:System.Collections.BitArray.Item%2A> property. Visual Basic implements <xref:System.Collections.BitArray.Item%2A> as a default property, which provides the same indexing functionality.
|
876 | 876 |
|
877 |
| - Retrieving the value of this property is an O(1) operation; setting the property is also an O(1) operation. |
| 877 | + Retrieving the value of this property is an `O(1)` operation; setting the property is also an `O(1)` operation. |
878 | 878 |
|
879 | 879 | ]]></format>
|
880 | 880 | </remarks>
|
|
963 | 963 |
|
964 | 964 | If <xref:System.Collections.BitArray.Length%2A> is set to a value that is greater than <xref:System.Collections.BitArray.Count%2A>, the new elements are set to `false`.
|
965 | 965 |
|
966 |
| - Retrieving the value of this property is an O(1) operation. Setting this property is an O(`n`) operation. |
| 966 | + Retrieving the value of this property is an `O(1)` operation. Setting this property is an `O(n)` operation. |
967 | 967 |
|
968 | 968 | ]]></format>
|
969 | 969 | </remarks>
|
|
1008 | 1008 | <format type="text/markdown"><]
|
1288 | 1288 | [!code-vb[Classic BitArray Example#2](~/samples/snippets/visualbasic/VS_Snippets_CLR_Classic/classic BitArray Example/VB/source2.vb#2)]
|
1289 | 1289 |
|
1290 |
| - Retrieving the value of this property is an O(1) operation. |
| 1290 | + Retrieving the value of this property is an `O(1)` operation. |
1291 | 1291 |
|
1292 | 1292 | ]]></format>
|
1293 | 1293 | </remarks>
|
|
1470 | 1470 | ## Remarks
|
1471 | 1471 | The bitwise exclusive OR operation returns `true` if exactly one operand is `true`, and returns `false` if both operands have the same Boolean value.
|
1472 | 1472 |
|
1473 |
| - This method is an O(`n`) operation, where `n` is <xref:System.Collections.BitArray.Count%2A>. |
| 1473 | + This method is an `O(n)` operation, where `n` is <xref:System.Collections.BitArray.Count%2A>. |
1474 | 1474 |
|
1475 | 1475 |
|
1476 | 1476 |
|
|
0 commit comments