![]() |
VOOZH | about |
dotnet add package Odin.Strings --version 0.9.140
NuGet\Install-Package Odin.Strings -Version 0.9.140
<PackageReference Include="Odin.Strings" Version="0.9.140" />
<PackageVersion Include="Odin.Strings" Version="0.9.140" />Directory.Packages.props
<PackageReference Include="Odin.Strings" />Project file
paket add Odin.Strings --version 0.9.140
#r "nuget: Odin.Strings, 0.9.140"
#:package Odin.Strings@0.9.140
#addin nuget:?package=Odin.Strings&version=0.9.140Install as a Cake Addin
#tool nuget:?package=Odin.Strings&version=0.9.140Install as a Cake Tool
Odin.System.StringEnum, part of the OrDinary INfrastructure libraries, provides enum-like behaviour for a set of string values via StringEnum, as well as a useful StringEnumMemberAttribute.
Create your string 'enum' class by inheriting from StringEnum and adding public string constant members.
public class LoaderTypes : StringEnum<LoaderTypes>
{
public const string File = "FILE";
public const string DynamicSql = "DYNAMIC-SQL";
}
if (loaderOptions.LoaderType == LoaderTypes.DynamicSql)
...
bool memberExists = LoaderTypes.HasValue("CUSTOM"); // returns false
string message = $"Valid members are: {string.Join(" | ", LoaderTypes.Values)}"
public record LoaderEditModel : IValidatableObject
{
[Required(AllowEmptyStrings = false)]
[StringEnumMember<LoaderTypes>]
public required string Loader { get; set; }
...
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on Odin.Strings:
| Package | Downloads |
|---|---|
|
Odin.Email
Provides a simple EmailMessage object model and IEmailSender interface for out of the box sending of email through any email sending service. Mailgun, Office365 (via MS Graph) and SMTP currently supported. |
|
|
Odin.BackgroundProcessing.Abstractions
A now redundant abstraction of Hangfire's job processing functionality for the original purpose of mocking Hangfire. Abstracts background processing related use cases via an IBackgroundProcessor interface, required in the days that Hangfire still has static entry points to its functionality. |
This package is not used by any popular GitHub repositories.