Smdn.Fundamental.Shim 3.1.3

.NET 5.0 .NET Core 3.1 .NET Standard 1.0 .NET Framework 4.5
NuGet\Install-Package Smdn.Fundamental.Shim -Version 3.1.3
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.
dotnet add package Smdn.Fundamental.Shim --version 3.1.3
<PackageReference Include="Smdn.Fundamental.Shim" Version="3.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Smdn.Fundamental.Shim --version 3.1.3
#r "nuget: Smdn.Fundamental.Shim, 3.1.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Smdn.Fundamental.Shim as a Cake Addin
#addin nuget:?package=Smdn.Fundamental.Shim&version=3.1.3

// Install Smdn.Fundamental.Shim as a Cake Tool
#tool nuget:?package=Smdn.Fundamental.Shim&version=3.1.3



API List

// Smdn.Fundamental.Shim.dll (Smdn.Fundamental.Shim-3.1.3)
//   Name: Smdn.Fundamental.Shim
//   AssemblyVersion:
//   InformationalVersion: 3.1.3+776c90f65c448c72e1f3c8c16c24fe988b1af46a
//   TargetFramework: .NETCoreApp,Version=v6.0
//   Configuration: Release

using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;

namespace Smdn {
  public static class ArrayShim {
    public static TOutput[] ConvertAll<TInput, TOutput>(this TInput[] array, Converter<TInput, TOutput> converter) {}
    public static TOutput[] ConvertAll<TInput, TOutput>(this TInput[] array, Func<TInput, TOutput> converter) {}
    public static T[] Empty<T>() {}

  public static class BitOperationsShim {
    public static bool IsPow2(int @value) {}
    public static bool IsPow2(long @value) {}
    public static bool IsPow2(uint @value) {}
    public static bool IsPow2(ulong @value) {}
    public static int LeadingZeroCount(uint @value) {}
    public static int LeadingZeroCount(ulong @value) {}
    public static int Log2(uint @value) {}
    public static int Log2(ulong @value) {}
    public static int PopCount(uint @value) {}
    public static int PopCount(ulong @value) {}
    public static int TrailingZeroCount(uint @value) {}
    public static int TrailingZeroCount(ulong @value) {}

  public static class MathShim {
    public static byte Clamp(byte @value, byte min, byte max) {}
    public static decimal Clamp(decimal @value, decimal min, decimal max) {}
    public static double Clamp(double @value, double min, double max) {}
    public static float Clamp(float @value, float min, float max) {}
    public static int Clamp(int @value, int min, int max) {}
    public static long Clamp(long @value, long min, long max) {}
    public static sbyte Clamp(sbyte @value, sbyte min, sbyte max) {}
    public static short Clamp(short @value, short min, short max) {}
    public static uint Clamp(uint @value, uint min, uint max) {}
    public static ulong Clamp(ulong @value, ulong min, ulong max) {}
    public static ushort Clamp(ushort @value, ushort min, ushort max) {}
    public static (byte Quotient, byte Remainder) DivRem(byte left, byte right) {}
    public static (int Quotient, int Remainder) DivRem(int left, int right) {}
    public static (long Quotient, long Remainder) DivRem(long left, long right) {}
    public static (sbyte Quotient, sbyte Remainder) DivRem(sbyte left, sbyte right) {}
    public static (short Quotient, short Remainder) DivRem(short left, short right) {}
    public static (uint Quotient, uint Remainder) DivRem(uint left, uint right) {}
    public static (ulong Quotient, ulong Remainder) DivRem(ulong left, ulong right) {}
    public static (ushort Quotient, ushort Remainder) DivRem(ushort left, ushort right) {}
    public static int DivRem(int a, int b, out int result) {}
    public static long DivRem(long a, long b, out long result) {}

  public static class StringShim {
    public static string Construct(ReadOnlySpan<char> s) {}
    public static bool EndsWith(this string str, char @value) {}
    public static bool StartsWith(this string str, char @value) {}

namespace Smdn.IO {
  public static class BinaryReaderExtensions {
    public static void Close(this BinaryReader reader) {}

  public static class BinaryWriterExtensions {
    public static void Close(this BinaryWriter writer) {}

  public static class TextReaderShim {
    public static void Close(this TextReader reader) {}

  public static class TextWriterExtensions {
    public static void Close(this TextWriter writer) {}

namespace Smdn.Threading {
  public static class ValueTaskShim {
    public static ValueTask CompletedTask { get; }

    public static ValueTask FromCanceled(CancellationToken cancellationToken) {}
    public static ValueTask<TResult> FromCanceled<TResult>(CancellationToken cancellationToken) {}
    public static ValueTask<TResult> FromResult<TResult>(TResult result) {}
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.0 netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Windows Phone wp8 wp81 wpa81
Windows Store netcore netcore45 netcore451
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Smdn.Fundamental.Shim:

Package Downloads
Smdn The ID prefix of this package has been reserved for one of the owners of this package by

Smdn.dll, fundamental utility and extension library

Smdn.Fundamental.Collection The ID prefix of this package has been reserved for one of the owners of this package by


Smdn.Fundamental.UInt24n The ID prefix of this package has been reserved for one of the owners of this package by


Smdn.Fundamental.Uuid The ID prefix of this package has been reserved for one of the owners of this package by


Smdn.Fundamental.FileSystem The ID prefix of this package has been reserved for one of the owners of this package by


GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.1.3 199 4/29/2022
3.1.2 174 4/3/2022
3.1.1 76 3/30/2022
3.1.0 98 3/28/2022
3.0.0 3,597 8/20/2021