/// <summary> /// Counts active bits in the <see cref="UInt16"/>.<para/> /// Sparse bit counting. /// </summary> /// <param name="bitField">The <see cref="UInt16"/> that gives the bits.</param> /// <returns>The number of active bits.</returns> public static Int32 CountBits(this UInt16 bitField) { Int32 tempBitField = bitField; return(tempBitField.CountBits()); }