8 packages tagged with “uint”
The framework BitArray is helpful but it has a serious flaw in the fact that it is not immutable. This is the primary motivation for working on this package in order to achieve just such an ImmutableBitArray. Reflexive operations can modify an instance but otherwise bitwise operations should yield a wholely new instance.
An IUserType for uint
A library that presents a wrapper structure named 'Numeric' which can contain different types of numbers.
A user type convention which sets custom type to UIntType
Builds on type of the ConstTypeArgs.Core library to provide const type arguments that allow you to use type parameters to pass uint values to generics at compile-time. This provides an analog to type specialization in C++, and can be used for scenarios such as: * Static configuration, * Eliminating unnecessary instance constructors, * "Passing" values to type initializers, * And more. Built-in const type arguments cover 0 to 15, powers of 2 up to 65536, and more. Here's a simple demonstration showing how to define and use const type arguments and domain-specific type arguments: using ConstTypeArgs.Uints; // Const type arguments: public readonly struct _8 : K_Uint<_8> { public static uint Value => 8; } public readonly struct _32 : K_Uint<_32> { public static uint Value => 32; } public abstract class DefaultSize : Uint<_32> { } // Usage: public class Foo<TSize> where TSize : K_Uint { public static readonly int[] FooArray = new int[TSize.Value]; static Foo() { Console.WriteLine($"Array size is {FooArray.Length}"); } } // Elsewhere var foo = new Foo<_8>(); // Outputs "Array size is 8" foo = new Foo<DefaultSize>(); // Outputs "Array size is 32"
It is a library with some useful methods. Numeric parsers. Additional methods for System.String
A class library of derivatives of TextBox to restrict user input to numeric values only (integer, floating and hexadecimal).