Skip to content

PedBerTor/BinaryToDecimalConverter

Repository files navigation

Binary To Decimal Converter

C# implementation of a binary-to-decimal converter

Overview

This solution provides a practical implementation of a binary-to-decimal converter in C#, designed to demonstrate various conversion techniques and approaches in programming.

The solution comprises three main projects:

  • Converter: a collection of binary to decimal number converters using positional notation and doubling. Each converter is implemented both iteratively and functionally (using LINQ).
  • Test: a set of unit tests implemented in NUnit for each of the converters to ensure their correctness and reliability.
  • UI: a WPF-based user interface for user interaction with the converters, allowing easy input and display of results.

NOTE: Due to its educational nature, this project is not intended to represent a production-ready solution. It is a demonstration of various design patterns, advanced features, and coding techniques. While the code may illustrate good programming practices, it may not adhere to all the best practices necessary for a real-world, production-grade application.

Requirements

.NET 8 or newer

License

This project is released under the MIT License.

Copyright (c) 2025 Pedro Bernaldez

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

C# implementation of a binary-to-decimal converter

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages