Com.MarcusTS.SharedUtils
2.0.5
dotnet add package Com.MarcusTS.SharedUtils --version 2.0.5
NuGet\Install-Package Com.MarcusTS.SharedUtils -Version 2.0.5
<PackageReference Include="Com.MarcusTS.SharedUtils" Version="2.0.5" />
paket add Com.MarcusTS.SharedUtils --version 2.0.5
#r "nuget: Com.MarcusTS.SharedUtils, 2.0.5"
// Install Com.MarcusTS.SharedUtils as a Cake Addin #addin nuget:?package=Com.MarcusTS.SharedUtils&version=2.0.5 // Install Com.MarcusTS.SharedUtils as a Cake Tool #tool nuget:?package=Com.MarcusTS.SharedUtils&version=2.0.5
NOW MAUI READY !!!
SHARED UTILS: Making C# Quick, Easy and Safe
Programs Should Not Be Redundant In Any Way
SOLID and DRY guidance declare that we should keep our C# code simple, narrow, and non-redundant. For instance, simple code like this:
var areSame =
string.Compare(mainStr, otherStr, CurrentCulture.CurrentCultureIgnoreCase) == 0;
... is both ungainly and unnecessary. DRY does not refer to copying code like this, though it is certainly illegal:
var areSameCheckedAgainRedundantly =
string.Compare(mainStr, otherStr, CurrentCulture.CurrentCultureIgnoreCase) == 0;
DRY means: no redundancy whatsoever, regardless of where it lurks. In this example, a parameter is redundant, and the check for 0 is both static (not a variable but also not even a constant!) and redundant. The fix is easy -- just use our SharedUtils extensions to code this quickly and safely:
using Com.MarcusTS.SharedUtils;
if (mainStr.isSameAs(otherStr))
{
}
If you are looking for "not same as", then use this:
using Com.MarcusTS.SharedUtils;
if (mainStr.isDifferentThan(otherStr))
{
}
SharedUtils provides similar comparison extensions for many C# types, including DateTime, numbers, and even IEnumerables!
SharedUtils also offers:
- A BetterObservableCollection that manages events more safely than in the C# version.
- A FlexibleStack that allows manipulation of a common stack.
- Reflection helpers
- Thread helpers,including a thread-safe Boolean
- Task helpers
- Numeric rounding
SharedUtils Is Open Source; Enjoy Our Other Offerings
Shared Utils (MAUI Ready!)
The Smart DI Container (MAUI Ready!)
Responsive Tasks (MAUI Ready!)
PlatformIndependentShared (MAUI Ready!)
UI.XamForms
The Modern App Demo
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Com.MarcusTS.SharedUtils:
Package | Downloads |
---|---|
Com.MarcusTS.SmartDI
A container that creates and then (optionally) stores variables to provide caching and centralized access. These sorts of containers are sometimes mis-described as IOC ("Inversion of Control") Containers. Since they do not provide any control over program flow, the accurate term is DI ("Dependency Injection") Container. The SmartDI Container is unique in that it: * Does not store instantiated objects unnecessarily. * Supports object life-cycle management. When an object dies, it is removed from the container. This requires you to raise a global message. * Supports simple register-and-resolve so types do not need to be registered in advance. |
|
Com.MarcusTS.ResponsiveTasks
TPL compatible replacement for events and global messages |
|
Com.MarcusTS.PlatformIndependentShared
Platform independent utilities for C# development. |
|
Com.MarcusTS.UI.XamForms
Xamarin.Forms abstract classes and utilities to support creating flowable animated apps. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.5 | 1,550 | 7/30/2022 |
2.0.4 | 944 | 7/29/2022 |
2.0.3 | 1,012 | 5/16/2022 |
2.0.2 | 1,899 | 10/29/2021 |
2.0.1 | 979 | 10/28/2021 |
1.0.37 | 694 | 10/28/2021 |
1.0.36 | 415 | 10/28/2021 |
1.0.34 | 747 | 8/27/2021 |
1.0.33 | 1,018 | 8/24/2021 |
1.0.32 | 847 | 8/17/2021 |
1.0.30 | 378 | 8/16/2021 |
1.0.29 | 878 | 8/14/2021 |
1.0.28 | 1,361 | 8/10/2021 |
1.0.27 | 762 | 7/5/2021 |
1.0.26 | 1,111 | 6/24/2021 |
1.0.24 | 719 | 6/2/2021 |
1.0.22 | 1,670 | 4/7/2021 |
1.0.21 | 454 | 4/6/2021 |
1.0.20 | 440 | 4/6/2021 |
1.0.19 | 436 | 4/2/2021 |
1.0.18 | 886 | 4/1/2021 |
1.0.17 | 905 | 1/30/2021 |
1.0.16 | 1,313 | 10/28/2020 |
1.0.15 | 1,095 | 10/28/2020 |
1.0.14 | 699 | 9/11/2020 |
1.0.13 | 942 | 4/22/2020 |
1.0.12 | 1,450 | 10/26/2019 |
1.0.11 | 1,030 | 7/30/2019 |
1.0.10 | 1,486 | 6/10/2019 |
1.0.9 | 714 | 6/10/2019 |
1.0.7 | 1,837 | 12/25/2018 |
1.0.5 | 1,815 | 12/24/2018 |
1.0.1 | 946 | 12/24/2018 |
1.0.0 | 857 | 12/24/2018 |