UnitsNet
SmartEnum
Our great sponsors
UnitsNet | SmartEnum | |
---|---|---|
8 | 7 | |
2,128 | 2,055 | |
- | - | |
8.6 | 8.1 | |
18 days ago | about 11 hours ago | |
C# | C# | |
MIT No Attribution | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
UnitsNet
-
Java opensource projects that need help from community.
If engineering/scientific projects appeal to you, Units of measurement implementations for Java are woefully behind when compared with the likes of UnitsNet for C#.
-
Strong typedefs
Check out EngineeringUnits (https://github.com/MadsKirkFoged/EngineeringUnits), or UnitsNet (https://github.com/angularsen/UnitsNet)
-
General feedback on my first python script
https://github.com/angularsen/UnitsNet is sort of an extreme example of this, and their https://github.com/angularsen/UnitsNet/blob/master/Common/UnitDefinitions/Length.json gives an example of how to allow multiple names for units.
-
TypeDef for C#?
Just FYI: https://github.com/angularsen/UnitsNet
-
What is it about C# that you do NOT like compared to other languages?
(I occasionally use https://github.com/angularsen/UnitsNet/, but it's not quite the same as doing it at the compiler level.)
-
With all the new features and the upcoming features can I inherhit from int yet?
UnitsNet does this for common units of measure, and for a more general solution, there's also ValueOf
-
Preview Features in .NET 6 - Generic Math
Have you looked into using UnitsNet instead of rolling your own physical quantity library? I've used it before and it's pretty nice.
-
Recipes, conversions, and fractions; or how I wrote part of my C# app.
What would be best is if there was a library to use to convert things to and from measurements. This was what I first attempted, using The UnitsNet library. This library is excellent, and I recommend it to many people. The issue I have with it, is that it was far more in depth than what I need it to do.
SmartEnum
- Java or C# for backed
-
Is there a "right" way to consolidate constants in C#/.NET?
I agree SmartEnum is my go-to for this
-
best practice to create a method with params of limited values
If we knew more about these methods and what kinds of parameters they take we could maybe make some suggestions. There are some patterns like smart enum that are sometimes just the thing.
-
Smart Enums In C# Like Java
In C# I am not able to add constructors, properties, and methods. although there is a library to do this https://github.com/Ardalis/SmartEnum but wouldn't be nice if we have this feature built-in to C#.
- What is it about C# that you do NOT like compared to other languages?
-
Displaying Enums with custom value
You can use the SmartEnum library.
- C# records can be used to emulate Java's fancy enums.
What are some alternatives?
unlib - a light-weight, header-only, dependency-free, C++14 library for ISO units
Enums.NET - Enums.NET is a high-performance type-safe .NET enum utility library
ShareX - ShareX is a free and open source program that lets you capture or record any area of your screen and share it with a single press of a key. It also allows uploading images, text or other types of files to many supported destinations you can choose from.
SmartAnnotations - A library for .NET that uses source generators to automatically generate data annotations for your models.
CodeHub - CodeHub is an iOS application written using Xamarin
csharplang - The official repo for the design of the C# programming language
Papercut - Papercut SMTP -- The Simple Desktop Email Server
Result - A result abstraction that can be mapped to HTTP response codes if needed.
csharpier - CSharpier is an opinionated code formatter for c#.
NodaTime - A better date and time API for .NET
.NET Runtime - .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.