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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Com.MarcusTS.SharedUtils" Version="2.0.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Com.MarcusTS.SharedUtils --version 2.0.5                
#r "nuget: Com.MarcusTS.SharedUtils, 2.0.5"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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!)

GutHub

NuGet

The Smart DI Container (MAUI Ready!)

GutHub

NuGet

Responsive Tasks (MAUI Ready!)

GutHub

NuGet

PlatformIndependentShared (MAUI Ready!)

GutHub

NuGet

UI.XamForms

GutHub

NuGet

The Modern App Demo

GutHub

  alternate text is missing from this package README image

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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,541 7/30/2022
2.0.4 938 7/29/2022
2.0.3 1,006 5/16/2022
2.0.2 1,893 10/29/2021
2.0.1 973 10/28/2021
1.0.37 688 10/28/2021
1.0.36 409 10/28/2021
1.0.34 738 8/27/2021
1.0.33 1,012 8/24/2021
1.0.32 841 8/17/2021
1.0.30 372 8/16/2021
1.0.29 872 8/14/2021
1.0.28 1,355 8/10/2021
1.0.27 755 7/5/2021
1.0.26 1,101 6/24/2021
1.0.24 713 6/2/2021
1.0.22 1,664 4/7/2021
1.0.21 448 4/6/2021
1.0.20 434 4/6/2021
1.0.19 430 4/2/2021
1.0.18 880 4/1/2021
1.0.17 899 1/30/2021
1.0.16 1,306 10/28/2020
1.0.15 1,089 10/28/2020
1.0.14 693 9/11/2020
1.0.13 936 4/22/2020
1.0.12 1,444 10/26/2019
1.0.11 1,023 7/30/2019
1.0.10 1,480 6/10/2019
1.0.9 708 6/10/2019
1.0.7 1,830 12/25/2018
1.0.5 1,808 12/24/2018
1.0.1 939 12/24/2018
1.0.0 850 12/24/2018