

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the Count property of BitArray class in C#?
Count the number of elements in the BitArray class using the Count property.
Let us first set our BitArray class −
BitArray arr = new BitArray(10);
Now use the Count property as shown below −
Example
using System; using System.Collections; public class Demo { public static void Main() { BitArray arr = new BitArray(10); Console.WriteLine( "Count: {0}", arr.Count ); } }
Output
Count: 10
- Related Questions & Answers
- What is the IsReadOnly property of BitArray class in C#?
- What is the Length property of BitArray class in C#?
- What is the Item property of BitArray class in C#?
- What is the BitArray class in C#?
- What is the Count property of ArrayList class in C#?
- What is the Count property of Hashtable class in C#?
- What is the Count property of Queue class in C#?
- What is the Count property of Stack class in C#?
- What is the Count property of SortedList class in C#?
- BitArray Class in C#
- What is the IsReadOnly property of Hashtable class in C#?
- What is the Item property of ArrayList class in C#?
- What is the Keys property of Hashtable class in C#?
- What is the IsFixedSize property of SortedList class in C#?
- What is the IsReadOnly property of SortedList class in C#?
Advertisements