Elephant.Common
6.0.1
dotnet add package Elephant.Common --version 6.0.1
NuGet\Install-Package Elephant.Common -Version 6.0.1
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="Elephant.Common" Version="6.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Elephant.Common" Version="6.0.1" />
<PackageReference Include="Elephant.Common" />
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 Elephant.Common --version 6.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Elephant.Common, 6.0.1"
#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 Elephant.Common@6.0.1
#: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=Elephant.Common&version=6.0.1
#tool nuget:?package=Elephant.Common&version=6.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
About
Generic and shared common code library.
ConvertFrom
ConvertFrom.NewLineStringToStringList(string? newLineValues, StringSplitOptions stringSplitOptions = StringSplitOptions.RemoveEmptyEntries)
ConvertFrom.SemiColonStringToStringList(string? semiColonValues, StringSplitOptions stringSplitOptions = StringSplitOptions.RemoveEmptyEntries)
ConvertFrom.StringListToNewLineString(IList<string>? list)
ConvertFrom.StringListToSemiColonString(IList<string>? list)
String Operations
StringOperations.CapitalizeFirstChar(string stringToCapitalize)
StringOperations.CapitalizeFirstCharNullable(string? stringToCapitalize)
StringOperations.EncloseByIfNotAlready(string value, char encloser)
StringOperations.Join(char separatorChar, params string?[] stringsToCombine)
StringOperations.JoinWithLeading(char separatorChar, params string?[] stringsToCombine)
StringOperations.JoinWithTrailing(char separatorChar, params string?[] stringsToCombine)
StringOperations.JoinWithLeadingAndTrailing(char separatorChar, params string?[] stringsToCombine)
StringOperations.RemoveSubstringFromString(string source, string substringToRemove)
StringOperations.RemoveSubstringsFromString(string source, IEnumerable<string> substringsToRemove)
StringOperations.SplitByNewLine(string value, StringSplitOptions stringSplitOptions = StringSplitOptions.None)
StringOperations.ToTitleCase(string stringToTitleCase)
StringOperations.ToTitleCaseNullable(string? stringToTitleCase)
Process Starter
ProcessStarter.StartProcess(string? fullPath, string? arguments = null, string? workingDirectory = null, bool useShellExecute = false);
Pagination
IQueryable<TSource> PaginationHelper.Paginate<TSource>(IList<TSource> source, int offset, int limit)
IQueryable<TSource> PaginationHelper.Paginate<TSource>(this IQueryable<TSource> source, int offset, int limit)
IQueryable<TSource> PaginationHelper.Paginate<TSource>(this IQueryable<TSource> source, IPaginationRequest paginationRequest)
int PaginationHelper.CurrentOffset(int sourceCount, int offset, int limit)
int PaginationHelper.LastOffset(int sourceCount, int limit)
int PaginationHelper.TotalPageCount(int sourceCount, int limit)
bool PaginationHelper.IsLastPage(int sourceCount, int offset, int limit)
Various
StartOnOsStart.IsRegisteredInStartup(string applicationName)
StartOnOsStart.RegisterInStartup(string applicationName, string fullPathToExecutable)
StartOnOsStart.DeregisterFromStartup(string applicationName)
Various
Base entities.
Upgrade instructions
4.0.7 → 5.0.0
PaginationHelper.Paginate(this IQueryable<TSource> source, IPaginationRequest paginationRequest)now returns all records instead of none if the limit property of IPaginationRequest is less or equal than zero (this is in line with the other overloads and pagination performance is increased for these cases).
5.0.1 → 6.0.0
- Fixed edge case handling in
PaginationHelperfor integer boundary values (int.MaxValueandint.MinValue). If you implemented custom workarounds for these cases, you can now remove them. For most users, no action is required.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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 is compatible. 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 is compatible. 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 is compatible. 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 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Elephant.Types (>= 4.0.4)
- Elephant.Types.Interfaces (>= 4.0.3)
-
net6.0
- Elephant.Types (>= 4.0.4)
- Elephant.Types.Interfaces (>= 4.0.3)
-
net7.0
- Elephant.Types (>= 4.0.4)
- Elephant.Types.Interfaces (>= 4.0.3)
-
net8.0
- Elephant.Types (>= 4.0.4)
- Elephant.Types.Interfaces (>= 4.0.3)
-
net9.0
- Elephant.Types (>= 4.0.4)
- Elephant.Types.Interfaces (>= 4.0.3)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Elephant.Common:
| Package | Downloads |
|---|---|
|
Elephant.ApiControllers
Common API Controller code. |
|
|
Elephant.CodeFirst.SqlServer
Code first helpers for Sql Server. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.0.1 | 662 | 11/19/2025 |
| 6.0.0 | 259 | 11/16/2025 |
| 5.0.1 | 437 | 3/28/2025 |
| 5.0.0 | 285 | 12/2/2023 |
| 4.0.6 | 261 | 11/15/2023 |
| 4.0.5 | 349 | 10/16/2023 |
| 4.0.4 | 458 | 3/9/2023 |
| 4.0.3 | 5,569 | 1/21/2023 |
| 3.0.5 | 687 | 1/7/2023 |
| 3.0.4 | 740 | 11/21/2022 |
| 3.0.3 | 426 | 11/18/2022 |
| 3.0.2 | 438 | 11/18/2022 |
| 3.0.1 | 938 | 11/14/2022 |
| 3.0.0 | 887 | 9/18/2022 |
| 2.0.0 | 644 | 7/12/2022 |
| 1.4.0 | 550 | 7/12/2022 |
Loading failed
Add .NET 10 target framework.