40 instantiations of BitArray
ILCompiler.Compiler (1)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
326_usedBytes = new BitArray(type.InstanceFieldSize.AsInt);
ILCompiler.ReadyToRun (2)
Compiler\ReadyToRunCompilationModuleGroupBase.cs (1)
239_bits = new BitArray(((int)compilationIndex) + 1);
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
326_usedBytes = new BitArray(type.InstanceFieldSize.AsInt);
ILCompiler.TypeSystem (1)
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
601context.ReplacedSignatureElements ??= new BitArray(originalSignature.Length + 1, false);
illink (2)
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Utilities\BloomFilter_Serialization.cs (1)
80return new BitArray(bytes);
Shared\Utilities\BloomFilter.cs (1)
41_bitArray = new BitArray(length: ComputeBitArrayLength(expectedCount, falsePositiveProbability));
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\BinaryEmbedding.cs (1)
69BitArray result = new(utf8.Length);
Microsoft.Extensions.AI.Abstractions.Tests (5)
Embeddings\BinaryEmbeddingTests.cs (5)
18BitArray vector = new BitArray(new bool[] { false, true, false, true }); 30BitArray vector = new BitArray(new bool[] { false, true, false, true }); 35BitArray newVector = new BitArray(new bool[] { true, false, true, false }); 66BitArray vector = new BitArray(bools); 84Assert.Equal(new BitArray(new[] { false, true, false, true, false, true }), result.Vector);
Microsoft.Extensions.AI.Integration.Tests (1)
QuantizationEmbeddingGenerator.cs (1)
50var result = new BitArray(vector.Length);
Microsoft.ML.Core (1)
Utilities\Stream.cs (1)
678var returnArray = new BitArray(bytes);
Microsoft.ML.Data (1)
DataView\ArrayDataViewBuilder.cs (1)
273_active = new BitArray(view.Schema.Count);
Microsoft.ML.Ensemble (1)
Selector\FeatureSelector\RandomFeatureSelector.cs (1)
54var features = new BitArray(len);
Microsoft.ML.FastTree (1)
FastTree.cs (1)
1678BitArray rowHasMissing = new BitArray(temp.Length);
Microsoft.ML.Transforms (3)
MissingValueReplacing.cs (2)
259_repIsDefault[iinfo] = new BitArray(srcType.Size); 370BitArray defaultSlots = new BitArray(values.Length);
SvmLight\SvmLightLoader.cs (1)
356_indexUsed = new BitArray((int)_keyMax);
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Logging\FileLogTraceListener.Properties.vb (1)
29Private ReadOnly _propertiesSet As New BitArray(PROPERTY_COUNT, False)
PresentationCore (1)
MS\Internal\Shaping\OpenTypeLayoutCache.cs (1)
441BitArray lookupUsage = new BitArray(lookupCount);
PresentationFramework (4)
System\Windows\Documents\FixedDSBuilder.cs (1)
67_visitedArray = new BitArray(fixedNodes.Count);
System\Windows\SystemColors.cs (2)
2464private static BitArray _colorCacheValid = new BitArray((int)CacheSlot.NumSlots); 2466private static BitArray _brushCacheValid = new BitArray((int)CacheSlot.NumSlots);
System\Windows\SystemParameters.cs (1)
5932private static BitArray _cacheValid = new BitArray((int)CacheSlot.NumSlots);
System.Data.Common (4)
System\Data\Common\DataStorage.cs (1)
265_dbNullBits = new BitArray(capacity);
System\Data\DataSet.cs (1)
1307_rowChanges = new BitArray(rowCount);
System\Data\DataTable.cs (2)
698BitArray rowStates = new BitArray(rowCount * 3, false); //All bit flags are set to false on initialization of the BitArray. 746BitArray nullbits = new BitArray(recordCount);
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (1)
356BitArray ret = new BitArray(rented);
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (1)
1005public object Clone() => new BitArray(this);
System.Private.Xml (1)
System\Xml\Xsl\QIL\QilPatternVisitor.cs (1)
279_bits = new BitArray(szBits, allSet);
System.Security.Cryptography (1)
System\Security\Cryptography\EccKeyFormatHelper.cs (1)
379BitArray poly = new BitArray(m + 1);
System.Text.Json (3)
System\Text\Json\Serialization\Converters\FSharp\FSharpUnionConverter.cs (1)
293BitArray? populatedFields = trackPopulated ? new BitArray(caseInfo.Fields!.Length) : null;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1545(requiredPropertiesMask ??= new BitArray(properties.Count))[i] = true;
System\Text\Json\Serialization\ReadStackFrame.cs (1)
149AssignedProperties = new BitArray(typeInfo.Properties.Count);
System.Windows.Forms (1)
System\Windows\Forms\Layout\TableLayout.ReservationGrid.cs (1)
36_rows.Add(new BitArray(_numColumns));
253 references to BitArray
ILCompiler.Compiler (1)
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
322private BitArray _usedBytes;
ILCompiler.ReadyToRun (2)
Compiler\ReadyToRunCompilationModuleGroupBase.cs (1)
234private BitArray _bits;
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
322private BitArray _usedBytes;
ILCompiler.TypeSystem (1)
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
222public BitArray ReplacedSignatureElements;
illink (8)
Microsoft.CodeAnalysis.Workspaces (7)
Shared\Utilities\BloomFilter_Serialization.cs (3)
25private static void WriteBitArray(ObjectWriter writer, BitArray bitArray) 65var bitArray = ReadBitArray(reader); 69private static BitArray ReadBitArray(ObjectReader reader)
Shared\Utilities\BloomFilter.cs (4)
22private readonly BitArray _bitArray; 62private BloomFilter(BitArray bitArray, int hashFunctionCount, bool isCaseSensitive) 419private static bool IsEquivalent(BitArray array1, BitArray array2)
Microsoft.Extensions.AI.Abstractions (8)
Embeddings\BinaryEmbedding.cs (8)
18private BitArray _vector; 23public BinaryEmbedding(BitArray vector) 30public BitArray Vector 40/// <summary>Provides a <see cref="JsonConverter{BitArray}"/> for serializing <see cref="BitArray"/> instances.</summary> 42public sealed class VectorConverter : JsonConverter<BitArray> 45public override BitArray Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 69BitArray result = new(utf8.Length); 90public override void Write(Utf8JsonWriter writer, BitArray value, JsonSerializerOptions options)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Embeddings\BinaryEmbeddingTests.cs (4)
18BitArray vector = new BitArray(new bool[] { false, true, false, true }); 30BitArray vector = new BitArray(new bool[] { false, true, false, true }); 35BitArray newVector = new BitArray(new bool[] { true, false, true, false }); 66BitArray vector = new BitArray(bools);
Microsoft.Extensions.AI.Integration.Tests (2)
EmbeddingGeneratorIntegrationTests.cs (1)
155static byte[] ToArray(BitArray array)
QuantizationEmbeddingGenerator.cs (1)
50var result = new BitArray(vector.Length);
Microsoft.Extensions.VectorData.Abstractions (2)
IKeywordHybridSearchable.cs (1)
47/// but some support other types (for example, <c>ReadOnlyMemory&lt;Half&gt;</c>, <see cref="BitArray"/>). Some providers might also support their own custom types as well, for example, to represent sparse embeddings.
IVectorSearchable.cs (1)
46/// but some support other types (for example, <c>ReadOnlyMemory&lt;Half&gt;</c>, <see cref="BitArray"/>). Some providers might also support their own custom types as well, for example, to represent sparse embeddings.
Microsoft.Extensions.VectorData.ConformanceTests (1)
TypeTests\EmbeddingTypeTests.cs (1)
195protected sealed class BinaryEmbeddingGenerator(BitArray data) : IEmbeddingGenerator<string, BinaryEmbedding>
Microsoft.ML.Core (5)
Utilities\Stream.cs (3)
270public static void WriteBitArray(this BinaryWriter writer, BitArray arr) 670public static BitArray ReadBitArray(this BinaryReader reader) 678var returnArray = new BitArray(bytes);
Utilities\Utils.cs (2)
114public static int Size(BitArray x) 949public static int GetCardinality(BitArray bitArray)
Microsoft.ML.Data (2)
DataView\ArrayDataViewBuilder.cs (2)
12using BitArray = System.Collections.BitArray; 254private readonly BitArray _active;
Microsoft.ML.Ensemble (7)
EnsembleUtils.cs (2)
18public static RoleMappedData SelectFeatures(IHost host, RoleMappedData data, BitArray features) 47public static void SelectFeatures<T>(in VBuffer<T> src, BitArray includedIndices, int cardinality, ref VBuffer<T> dst)
FeatureSubsetModel.cs (2)
15public readonly BitArray SelectedFeatures; 20public FeatureSubsetModel(IPredictorProducing<TOutput> predictor, BitArray features = null,
Selector\FeatureSelector\RandomFeatureSelector.cs (1)
54var features = new BitArray(len);
Subset.cs (2)
14public readonly BitArray SelectedFeatures; 16public Subset(RoleMappedData data, BitArray features = null)
Microsoft.ML.FastTree (1)
FastTree.cs (1)
1678BitArray rowHasMissing = new BitArray(temp.Length);
Microsoft.ML.Transforms (10)
MissingValueReplacing.cs (9)
41private static readonly FuncInstanceMethodInfo1<MissingValueReplacingTransformer, DataViewType, Array, BitArray> _computeDefaultSlotsMethodInfo 42= FuncInstanceMethodInfo1<MissingValueReplacingTransformer, DataViewType, Array, BitArray>.Create(target => target.ComputeDefaultSlots<int>); 200private readonly BitArray[] _repIsDefault; 228_repIsDefault = new BitArray[columnsLength]; 277private void GetReplacementValues(IDataView input, MissingValueReplacingEstimator.ColumnOptions[] columns, out object[] repValues, out BitArray[] slotIsDefault, out DataViewType[] types) 280slotIsDefault = new BitArray[columns.Length]; 367private BitArray ComputeDefaultSlots<T>(DataViewType type, Array values) 370BitArray defaultSlots = new BitArray(values.Length); 778private void FillValues<T>(in VBuffer<T> src, ref VBuffer<T> dst, InPredicate<T> isNA, T[] rep, BitArray repIsDefault)
SvmLight\SvmLightLoader.cs (1)
347private readonly BitArray _indexUsed;
mscorlib (1)
parent\ref\mscorlib.cs (1)
72[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.BitArray))]
netstandard (1)
netstandard.cs (1)
88[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.BitArray))]
PresentationCore (1)
MS\Internal\Shaping\OpenTypeLayoutCache.cs (1)
441BitArray lookupUsage = new BitArray(lookupCount);
PresentationFramework (6)
System\Windows\Documents\FixedDSBuilder.cs (1)
252private BitArray _visitedArray;
System\Windows\SystemColors.cs (2)
2464private static BitArray _colorCacheValid = new BitArray((int)CacheSlot.NumSlots); 2466private static BitArray _brushCacheValid = new BitArray((int)CacheSlot.NumSlots);
System\Windows\SystemParameters.cs (1)
5932private static BitArray _cacheValid = new BitArray((int)CacheSlot.NumSlots);
System\Windows\SystemResources.cs (2)
1427internal static bool ClearBitArray(BitArray cacheValid) 1442internal static bool ClearSlot(BitArray cacheValid, int slot)
System.Collections (1)
src\runtime\artifacts\obj\System.Collections\Release\net11.0\System.Collections.Forwards.cs (1)
3[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.BitArray))]
System.Data.Common (89)
System\Data\Common\BigIntegerStorage.cs (2)
167protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 174protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\BooleanStorage.cs (2)
187protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 194protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\ByteStorage.cs (2)
259protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 266protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\CharStorage.cs (2)
191protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 198protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\DataStorage.cs (6)
117private System.Collections.BitArray _dbNullBits = default!; // Late-initialized 544internal void CopyValueInternal(int record, object store, BitArray nullbits, int storeIndex) 549internal void SetStorageInternal(object store, BitArray nullbits) 555protected abstract void CopyValue(int record, object store, BitArray nullbits, int storeIndex); 556protected abstract void SetStorage(object store, BitArray nullbits); 557protected void SetNullStorage(BitArray nullbits)
System\Data\Common\DateTimeOffsetStorage.cs (2)
194protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 201protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\DateTimeStorage.cs (2)
251protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 266protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\DecimalStorage.cs (2)
255protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 262protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\DoubleStorage.cs (2)
259protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 266protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\Int16Storage.cs (2)
273protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 280protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\Int32Storage.cs (2)
272protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 279protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\Int64Storage.cs (2)
264protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 271protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\ObjectStorage.cs (2)
523protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 539protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SByteStorage.cs (2)
261protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 268protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SingleStorage.cs (2)
260protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 267protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLBinaryStorage.cs (2)
135protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 142protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQlBooleanStorage.cs (2)
169protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 176protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLBytesStorage.cs (2)
133protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 140protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLByteStorage.cs (2)
245protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 252protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLCharsStorage.cs (2)
136protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 143protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (2)
171protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 178protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLDecimalStorage.cs (2)
243protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 250protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLDoubleStorage.cs (2)
244protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 251protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLGuidStorage.cs (2)
136protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 143protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLInt16Storage.cs (2)
244protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 251protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLInt32Storage.cs (2)
244protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 251protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLInt64Storage.cs (2)
245protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 252protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLMoneyStorage.cs (2)
244protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 251protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLSingleStorage.cs (2)
242protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 249protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SQLTypes\SQLStringStorage.cs (2)
197protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 204protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\SqlUDTStorage.cs (2)
246protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 253protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\StringStorage.cs (2)
209protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 216protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\TimeSpanStorage.cs (2)
279protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 286protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\UInt16Storage.cs (2)
272protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 279protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\UInt32Storage.cs (2)
271protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 278protected override void SetStorage(object store, BitArray nullbits)
System\Data\Common\UInt64Storage.cs (2)
262protected override void CopyValue(int record, object store, BitArray nullbits, int storeIndex) 269protected override void SetStorage(object store, BitArray nullbits)
System\Data\DataColumn.cs (2)
1786internal void CopyValueIntoStore(int record, object store, BitArray nullbits, int storeIndex) 1793internal void SetStorage(object store, BitArray nullbits)
System\Data\DataRow.cs (3)
1403_columns[i].CopyValueIntoStore(_oldRecord, storeList[i]!, (BitArray)nullbitList[i]!, storeIndex); 1415_columns[i].CopyValueIntoStore(_newRecord, storeList[i]!, (BitArray)nullbitList[i]!, storeIndex); 1426_columns[i].CopyValueIntoStore(_tempRecord, storeList[i]!, (BitArray)nullbitList[i]!, storeIndex);
System\Data\DataSet.cs (1)
1303private readonly BitArray _rowChanges;
System\Data\DataTable.cs (7)
698BitArray rowStates = new BitArray(rowCount * 3, false); //All bit flags are set to false on initialization of the BitArray. 746BitArray nullbits = new BitArray(recordCount); 787BitArray rowStates = (BitArray)info.GetValue(string.Format(formatProvider, "DataTable_{0}.RowStates", serIndex), typeof(BitArray))!; 804Columns[i].SetStorage(storeList[i]!, (BitArray)nullbitList[i]!); 866private static DataRowState ConvertToRowState(BitArray bitStates, int bitIndex)
System.Formats.Asn1 (9)
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (6)
321public static BitArray ReadNamedBitList( 356BitArray ret = new BitArray(rented); 576public BitArray ReadNamedBitList(Asn1Tag? expectedTag = null) 578BitArray ret = AsnDecoder.ReadNamedBitList(_data.Span, RuleSet, out int consumed, expectedTag); 758public BitArray ReadNamedBitList(Asn1Tag? expectedTag = null) 760BitArray ret = AsnDecoder.ReadNamedBitList(_data, RuleSet, out int consumed, expectedTag);
System\Formats\Asn1\AsnWriter.NamedBitList.cs (3)
90/// different than the value produced by <see cref="BitArray.CopyTo"/> with a byte array. 94public void WriteNamedBitList(BitArray value, Asn1Tag? tag = null) 188private void WriteBitArray(BitArray value, Asn1Tag? tag)
System.Private.CoreLib (73)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (63)
47/// Initializes a new instance of the <see cref="BitArray"/> class that can hold the specified 50/// <param name="length">The number of bit values in the new <see cref="BitArray"/>.</param> 58/// Initializes a new instance of the <see cref="BitArray"/> class that can hold the specified number of 61/// <param name="length">The number of bit values in the new <see cref="BitArray"/>.</param> 128/// Initializes a new instance of the <see cref="BitArray"/> class that contains bit values copied 150/// Initializes a new instance of the <see cref="BitArray"/> class that contains bit values copied 183/// Initializes a new instance of the <see cref="BitArray"/> class that contains bit values 199/// Initializes a new instance of the <see cref="BitArray"/> class that contains bit values 289/// Initializes a new instance of the <see cref="BitArray"/> class that contains bit values 311/// Initializes a new instance of the <see cref="BitArray"/> class that contains bit values 352/// Initializes a new instance of the <see cref="BitArray"/> class that contains bit values copied from the specified BitArray. 354/// <param name="bits">The <see cref="BitArray"/> to copy.</param> 356public BitArray(BitArray bits) 367/// Gets or sets the value of the bit at a specific position in the <see cref="BitArray"/>. 381/// Gets the value of the bit at a specific position in the <see cref="BitArray"/>. 400/// Sets the value of the bit at a specific position in the <see cref="BitArray"/>. 431/// Sets all bits in the <see cref="BitArray"/> to the specified value. 450/// Performs the bitwise AND operation between the elements of the current <see cref="BitArray"/> object and the 451/// corresponding elements in the specified array. The current <see cref="BitArray"/> object will be modified to 455/// <returns>An array containing the result of the bitwise AND operation, which is a reference to the current <see cref="BitArray"/> object.</returns> 457/// <exception cref="ArgumentException"><paramref name="value"/> and the current <see cref="BitArray"/> do not have the same number of elements.</exception> 458public BitArray And(BitArray value) => Invoke<AndBinaryOp>(value); 461/// Performs the bitwise OR operation between the elements of the current <see cref="BitArray"/> object and the 462/// corresponding elements in the specified array. The current <see cref="BitArray"/> object will be modified to 466/// <returns>An array containing the result of the bitwise OR operation, which is a reference to the current <see cref="BitArray"/> object.</returns> 468/// <exception cref="ArgumentException"><paramref name="value"/> and the current <see cref="BitArray"/> do not have the same number of elements.</exception> 469public BitArray Or(BitArray value) => Invoke<OrBinaryOp>(value); 472/// Performs the bitwise XOR operation between the elements of the current <see cref="BitArray"/> object and the 473/// corresponding elements in the specified array. The current <see cref="BitArray"/> object will be modified to 477/// <returns>An array containing the result of the bitwise XOR operation, which is a reference to the current <see cref="BitArray"/> object.</returns> 479/// <exception cref="ArgumentException"><paramref name="value"/> and the current <see cref="BitArray"/> do not have the same number of elements.</exception> 480public BitArray Xor(BitArray value) => Invoke<XorBinaryOp>(value); 483/// Inverts all the bit values in the current <see cref="BitArray"/>, so that elements set to true are changed to false, 487public BitArray Not() 495private BitArray Invoke<TBinaryOp>(BitArray value) where TBinaryOp : struct, IBinaryOp 596/// Shifts all the bit values of the current <see cref="BitArray"/> to the right on <paramref name="count"/> bits. 599/// <returns>The current <see cref="BitArray"/>.</returns> 601public BitArray RightShift(int count) 659/// Shifts all the bit values of the current <see cref="BitArray"/> to the left on <paramref name="count"/> bits. 662/// <returns>The current <see cref="BitArray"/>.</returns> 664public BitArray LeftShift(int count) 714/// Gets or sets the number of elements in the <see cref="BitArray"/>. 716/// <value>The number of elements in the <see cref="BitArray"/>.</value> 926/// Determines whether all bits in the <see cref="BitArray"/> are set to <c>true</c>. 928/// <returns><c>true</c> if every bit in the <see cref="BitArray"/> is set to <c>true</c>, or if <see cref="BitArray"/> is empty; otherwise, <c>false</c>.</returns> 953/// Determines whether any bit in the <see cref="BitArray"/> is set to <c>true</c>. 955/// <returns><c>true</c> if <see cref="BitArray"/> is not empty and at least one of its bit is set to <c>true</c>; otherwise, <c>false</c>.</returns> 979/// <summary>Computes the number of bits that are set in the <see cref="BitArray"/>.</summary> 980/// <returns>The number of set bits in the <see cref="BitArray"/>.</returns> 992/// <summary>Gets the number of elements contained in the <see cref="BitArray"/>.</summary> 995/// <summary>Gets an object that can be used to synchronize access to the <see cref="BitArray"/>.</summary> 998/// <summary>Gets a value indicating whether access to the <see cref="BitArray"/> is synchronized (thread safe).</summary> 1001/// <summary>Gets a value indicating whether the <see cref="BitArray"/> is read-only.</summary> 1004/// <summary>Creates a shallow copy of the <see cref="BitArray"/>.</summary> 1007/// <summary>Returns an enumerator that iterates through the <see cref="BitArray"/>.</summary> 1008/// <returns>An IEnumerator for the entire <see cref="BitArray"/>.</returns> 1056private readonly BitArray _bitArray; 1061internal BitArrayEnumeratorSimple(BitArray bitArray)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (10)
46/// Get a <see cref="Span{Byte}"/> view over a <see cref="BitArray"/>'s data. 48/// <param name="array">The <see cref="BitArray"/> whose backing storage should be viewed.</param> 55/// The <see cref="BitArray"/> may have more capacity than is required to store the number of bits represented by 56/// <see cref="BitArray.Length"/>. The returned span's <see cref="Span{Byte}.Length"/> will be the smallest number 57/// of bytes capable of representing that length. If the <see cref="BitArray"/>'s length is not evenly divisible by 58/// 8, the last byte of the span may contain extraneous bits that do not represent elements in the <see cref="BitArray"/>. 62/// The length of the <see cref="BitArray"/> should not be changed while the resulting <see cref="Span{Byte}"/> 63/// is in use. After such a change, the span may no longer refer to the <see cref="BitArray"/>'s backing storage. 67public static Span<byte> AsBytes(BitArray? array) => 69array._array.AsSpan(0, BitArray.GetByteArrayLengthFromBitLength(array.Length));
System.Private.Xml (1)
System\Xml\Xsl\QIL\QilPatternVisitor.cs (1)
275private readonly BitArray _bits;
System.Security.Cryptography (1)
System\Security\Cryptography\EccKeyFormatHelper.cs (1)
379BitArray poly = new BitArray(m + 1);
System.Text.Json (7)
System\Text\Json\Serialization\Converters\FSharp\FSharpUnionConverter.cs (2)
293BitArray? populatedFields = trackPopulated ? new BitArray(caseInfo.Fields!.Length) : null; 373private static void ThrowForMissingRequiredFields(CaseInfo caseInfo, BitArray populatedFields)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
36internal BitArray? OptionalPropertiesMask { get; private set; } 1518BitArray? requiredPropertiesMask = null;
System\Text\Json\Serialization\ReadStackFrame.cs (2)
83public BitArray? AssignedProperties; 162BitArray assignedOrNotRequiredPropertiesSet = AssignedProperties.Or(typeInfo.OptionalPropertiesMask);
System\Text\Json\ThrowHelper.Serialization.cs (1)
303public static void ThrowJsonException_JsonRequiredPropertyMissing(JsonTypeInfo parent, BitArray assignedOrNotRequiredPropertiesSet)
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Symbolic\BitVector.cs (1)
13/// This differs from <see cref="BitArray"/> in that it's a value type rather than a reference type
System.Windows.Forms (1)
System\Windows\Forms\Layout\TableLayout.ReservationGrid.cs (1)
14private readonly List<BitArray> _rows = [];