BitClass 1.0.0

Adds a class called `bit` with implicit conversions. When a method requires a bool, you can insert a bit.

Install-Package BitClass -Version 1.0.0
dotnet add package BitClass --version 1.0.0
<PackageReference Include="BitClass" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BitClass --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

class bit

  • new bit(bool b)
    Initialize a bit.
  • implicit conversion from bit to int
    Convert the bit to either a 1 or a 0 as an integer.
  • implicit conversion from bit to bool
    Get the private Boolean stored in the bit.
  • implicit conversion from bool to bit
    Construct a new bit from a Boolean.
  • bit.Change(bool b)
    Change the value of a bit object.

class bit

  • new bit(bool b)
    Initialize a bit.
  • implicit conversion from bit to int
    Convert the bit to either a 1 or a 0 as an integer.
  • implicit conversion from bit to bool
    Get the private Boolean stored in the bit.
  • implicit conversion from bool to bit
    Construct a new bit from a Boolean.
  • bit.Change(bool b)
    Change the value of a bit object.

Release Notes

- Created implicit conversions

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 61 7/4/2019