MHBasicMethods 1.0.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package MHBasicMethods --version 1.0.6
                    
NuGet\Install-Package MHBasicMethods -Version 1.0.6
                    
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="MHBasicMethods" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MHBasicMethods" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="MHBasicMethods" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MHBasicMethods --version 1.0.6
                    
#r "nuget: MHBasicMethods, 1.0.6"
                    
#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.
#:package MHBasicMethods@1.0.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MHBasicMethods&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=MHBasicMethods&version=1.0.6
                    
Install as a Cake Tool

MHConvert (to use this initialize MHConvert)

* double FahrenheitToCelsius(double fahrenheit)
* double CelsiusToFahrenheit(double celsius)

MHDate (to use this initialize MHDate)

* int CalculateAge(DateTime birthdate)
* List<DateTime> GetFirstAndLastDayOfMonth(DateTime date)
* bool IsLeapYear(int year)
* string FormatElapsedTime(DateTime startDate)
* DateTime FindNextWeekday(DateTime startDate, DayOfWeek weekday)

MHNumbers (to use this initialize MHNumbers)

* string ConvertNumberToWords(int number)
* List<int> FindPrimeNumbers(int n)
* int CalculateFactorial(int n)
* List<int> GenerateFibonacciSeries(int n)
* int FindGCD(int a, int b)
* double CalculatePower(double baseNumber, int exponent)
* bool IsArmstrongNumber(int number)
* int FindLCM(int a, int b)
* bool IsPalindrome(int number)
* bool IsPerfectNumber(int number)
* double CalculateSquareRoot(double number)
* string DecimalToBinary(int decimalNumber)
* int BinaryToDecimal(string binaryNumber)
* bool IsPowerOfTwo(int number)
* int CountDigits(int number)
* double CalculateExponentiation(double baseNumber, int exponent)
* bool IsHappyNumber(int number)
* bool IsHarshadNumber(int number)
* List<int> GeneratePrimesInRange(int start, int end)

MHRandom (to use this initialize MHRandom)

* string GenerateRandomAlphanumeric(int length)
* string GenerateRandomGuid()
* string GenerateRandomUniqueCodeWithPrefix(string prefix, int length)
* string GenerateRandomHexadecimal(int length)
* string GenerateRandomPronounceablePassword(int length)
* string GenerateRandomBase64String(int length)
* string GenerateRandomString(int length, string customCharacterSet)
* string GenerateRandomEmailAddress()
* string GenerateRandomPhoneNumber()
* DateTime GenerateRandomDate(DateTime startDate, DateTime endDate)
* string GenerateRandomIPv4Address()
* string GenerateRandomStringWithPrefixAndSuffix(string prefix, string suffix, int length)
* string GenerateRandomNumber(int length)
* string GenerateRandomKey(int length, bool includeNumbers, bool includeLowercase, bool includeUppercase, bool includeSpecialCharacters)

MHEncryption (to use this initialize MHEncrypt)

* string Encrypt(string plainText, string secretKey)
* string Decrypt(string cipherText, string secretKey)
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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 361 11/4/2023
1.0.7 225 11/3/2023
1.0.6 188 11/3/2023
1.0.5 190 11/3/2023
1.0.4 210 11/3/2023
1.0.3 199 11/2/2023
1.0.1 209 11/2/2023
1.0.0 192 11/2/2023