Soenneker.SmartEnum.Abbreviated 2.1.441

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.SmartEnum.Abbreviated --version 2.1.441                
NuGet\Install-Package Soenneker.SmartEnum.Abbreviated -Version 2.1.441                
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="Soenneker.SmartEnum.Abbreviated" Version="2.1.441" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.SmartEnum.Abbreviated --version 2.1.441                
#r "nuget: Soenneker.SmartEnum.Abbreviated, 2.1.441"                
#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 Soenneker.SmartEnum.Abbreviated as a Cake Addin
#addin nuget:?package=Soenneker.SmartEnum.Abbreviated&version=2.1.441

// Install Soenneker.SmartEnum.Abbreviated as a Cake Tool
#tool nuget:?package=Soenneker.SmartEnum.Abbreviated&version=2.1.441                

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.SmartEnum.Abbreviated

A derivative of Ardalis' SmartEnum, adding support for abbrevations

Installation

dotnet add package Soenneker.SmartEnum.Abbreviated

Usage

The AbbreviatedSmartEnum class is an abstract base class that extends the SmartEnum class from Ardalis' library. It provides additional functionality for working with abbreviated enum values.

To create an abbreviated SmartEnum, you need to derive a new class from AbbreviatedSmartEnum<TEnum>.

public class LanguageType : AbbreviatedSmartEnum<LanguageType>
{
    public static readonly LanguageType English = new(nameof(English), 1, "EN");
    public static readonly LanguageType Spanish = new(nameof(Spanish), 2, "ES");
    public static readonly LanguageType French = new(nameof(French), 3, "FR");

    private LanguageType(string name, int value, string abbreviation)
        : base(name, value, abbreviation)
    {
    }
}

and how you use your new SmartEnum:

string abbreviated = LanguageType.English.Abbreviation; // "EN"

// Get the enum value for the "EN" abbreviation
LanguageType english = LanguageType.FromAbbreviation("EN");

// Try to get the enum value for the "ES" abbreviation (case-insensitive)
if (LanguageType.TryFromAbbreviation("es", ignoreCase: true, out LanguageType spanish))
{
    // spanish will be the LanguageType.Spanish value
}

The IgnoreCase and StaticIgnoreCase properties allow you to control whether the abbreviation matching is case-sensitive or case-insensitive, either for a specific instance or globally across all instances of the derived enum class.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.1.456 32 9/27/2024
2.1.455 38 9/27/2024
2.1.454 66 9/27/2024
2.1.453 25 9/27/2024
2.1.452 51 9/27/2024
2.1.451 28 9/27/2024
2.1.450 53 9/27/2024
2.1.449 22 9/27/2024
2.1.448 28 9/27/2024
2.1.447 27 9/27/2024
2.1.446 46 9/27/2024
2.1.445 60 9/26/2024
2.1.444 55 9/26/2024
2.1.443 32 9/26/2024
2.1.442 70 9/26/2024
2.1.441 53 9/26/2024
2.1.440 50 9/26/2024
2.1.439 42 9/26/2024
2.1.438 31 9/26/2024
2.1.437 42 9/26/2024
2.1.436 186 9/26/2024
2.1.435 32 9/26/2024
2.1.434 130 9/23/2024
2.1.433 65 9/23/2024
2.1.432 80 9/23/2024
2.1.431 52 9/23/2024
2.1.430 81 9/23/2024
2.1.429 84 9/23/2024
2.1.428 71 9/23/2024
2.1.427 100 9/23/2024
2.1.426 97 9/23/2024
2.1.425 59 9/23/2024
2.1.424 71 9/23/2024
2.1.423 83 9/23/2024
2.1.422 67 9/23/2024
2.1.421 121 9/23/2024
2.1.420 65 9/23/2024
2.1.419 107 9/18/2024
2.1.418 81 9/18/2024
2.1.417 125 9/18/2024
2.1.416 80 9/18/2024
2.1.415 85 9/18/2024
2.1.414 86 9/17/2024
2.1.413 72 9/17/2024
2.1.412 68 9/17/2024
2.1.411 79 9/17/2024
2.1.410 80 9/17/2024
2.1.409 63 9/17/2024
2.1.408 70 9/17/2024
2.1.407 69 9/17/2024
2.1.406 61 9/17/2024
2.1.405 64 9/17/2024
2.1.404 76 9/17/2024
2.1.403 64 9/17/2024
2.1.402 279 9/17/2024
2.1.401 110 9/16/2024
2.1.400 79 9/16/2024
2.1.399 92 9/16/2024
2.1.398 68 9/16/2024
2.1.397 156 9/12/2024
2.1.396 97 9/12/2024
2.1.395 112 9/12/2024
2.1.394 115 9/12/2024
2.1.393 80 9/12/2024
2.1.392 103 9/12/2024
2.1.391 83 9/11/2024
2.1.390 105 9/11/2024
2.1.389 79 9/11/2024
2.1.388 118 9/11/2024
2.1.387 110 9/11/2024
2.1.386 73 9/11/2024
2.1.385 82 9/11/2024
2.1.383 96 9/11/2024
2.1.382 111 9/11/2024
2.1.381 109 9/11/2024
2.1.380 144 9/11/2024
2.1.379 104 9/10/2024
2.1.378 83 9/10/2024
2.1.377 116 9/10/2024
2.1.376 95 9/10/2024
2.1.375 76 9/10/2024
2.1.374 86 9/10/2024
2.1.373 79 9/10/2024
2.1.372 108 9/10/2024
2.1.371 95 9/10/2024
2.1.370 94 9/10/2024
2.1.369 75 9/10/2024
2.1.368 103 9/9/2024
2.1.367 69 9/9/2024
2.1.366 100 9/9/2024
2.1.365 108 9/9/2024
2.1.363 94 9/9/2024
2.1.362 87 9/9/2024
2.1.361 102 9/9/2024
2.1.360 80 9/9/2024
2.1.358 82 9/9/2024
2.1.357 77 9/9/2024
2.1.356 77 9/9/2024
2.1.355 106 9/9/2024
2.1.354 65 9/9/2024
2.1.353 159 9/7/2024
2.1.352 79 9/7/2024
2.1.351 72 9/7/2024
2.1.350 92 9/7/2024
2.1.349 85 9/6/2024
2.1.348 100 9/6/2024
2.1.347 97 9/6/2024
2.1.346 83 9/6/2024
2.1.345 91 9/6/2024
2.1.344 75 9/6/2024
2.1.343 157 9/5/2024
2.1.342 68 9/5/2024
2.1.341 75 9/5/2024
2.1.340 102 9/5/2024
2.1.339 74 9/5/2024
2.1.338 110 9/5/2024
2.1.337 74 9/5/2024
2.1.336 74 9/5/2024
2.1.335 85 9/5/2024
2.1.334 82 9/5/2024
2.1.333 96 9/5/2024
2.1.332 73 9/5/2024
2.1.331 101 9/4/2024
2.1.330 80 9/4/2024
2.1.329 163 9/4/2024
2.1.328 98 9/3/2024
2.1.327 74 9/3/2024
2.1.326 89 9/3/2024
2.1.325 93 9/3/2024
2.1.324 76 9/3/2024
2.1.323 99 9/3/2024
2.1.322 66 9/3/2024
2.1.321 77 9/3/2024
2.1.320 75 9/3/2024
2.1.319 109 8/29/2024
2.1.318 59 8/29/2024
2.1.317 77 8/29/2024
2.1.316 59 8/29/2024
2.1.315 190 8/26/2024
2.1.314 95 8/26/2024
2.1.313 78 8/26/2024
2.1.312 98 8/26/2024
2.1.311 217 8/21/2024
2.1.310 112 8/21/2024
2.1.309 101 8/21/2024
2.1.308 93 8/21/2024
2.1.307 94 8/21/2024
2.1.306 83 8/21/2024
2.1.305 124 8/20/2024
2.1.304 101 8/20/2024
2.1.303 115 8/20/2024
2.1.302 97 8/20/2024
2.1.301 135 8/20/2024
2.1.300 91 8/20/2024
2.1.299 98 8/20/2024
2.1.298 95 8/20/2024
2.1.297 90 8/20/2024
2.1.296 117 8/20/2024
2.1.295 120 8/20/2024
2.1.294 102 8/19/2024
2.1.293 90 8/19/2024
2.1.292 180 8/15/2024
2.1.291 109 8/15/2024
2.1.290 118 8/15/2024
2.1.289 90 8/15/2024
2.1.288 126 8/14/2024
2.1.287 95 8/14/2024
2.1.286 89 8/14/2024
2.1.285 116 8/13/2024
2.1.284 105 8/7/2024
2.1.283 83 8/7/2024
2.1.282 77 8/7/2024
2.1.281 75 8/7/2024
2.1.280 88 8/6/2024
2.1.279 74 8/6/2024
2.1.278 207 8/1/2024
2.1.277 79 8/1/2024
2.1.276 74 8/1/2024
2.1.275 85 8/1/2024
2.1.274 68 8/1/2024
2.1.273 251 7/25/2024
2.1.272 65 7/25/2024
2.1.271 61 7/25/2024
2.1.270 55 7/25/2024
2.1.269 67 7/25/2024
2.1.268 114 7/25/2024
2.1.267 44 7/25/2024
2.1.266 69 7/25/2024
2.1.265 50 7/25/2024
2.1.264 48 7/25/2024
2.1.263 89 7/24/2024
2.1.262 89 7/24/2024
2.1.260 187 7/20/2024
2.1.259 98 7/20/2024
2.1.258 87 7/20/2024
2.1.257 235 7/14/2024
2.1.256 92 7/14/2024
2.1.255 82 7/14/2024
2.1.254 75 7/14/2024
2.1.253 97 7/14/2024
2.1.252 78 7/14/2024
2.1.251 89 7/14/2024
2.1.250 106 7/13/2024
2.1.249 122 7/10/2024
2.1.248 83 7/10/2024
2.1.247 87 7/10/2024
2.1.246 95 7/10/2024
2.1.245 96 7/10/2024
2.1.244 89 7/10/2024
2.1.243 79 7/10/2024
2.1.242 83 7/10/2024
2.1.241 93 7/10/2024
2.1.240 87 7/10/2024
2.1.239 65 7/10/2024
2.1.238 76 7/10/2024
2.1.237 80 7/10/2024
2.1.236 80 7/10/2024
2.1.235 78 7/10/2024
2.1.234 108 7/10/2024
2.1.232 97 7/10/2024
2.1.231 84 7/10/2024
2.1.230 110 7/9/2024
2.1.229 83 7/9/2024
2.1.227 70 7/9/2024
2.1.226 66 7/9/2024
2.1.225 87 7/9/2024
2.1.224 104 7/9/2024
2.1.223 93 7/9/2024
2.1.222 78 7/9/2024
2.1.221 98 7/9/2024
2.1.220 85 7/9/2024
2.1.219 92 7/9/2024
2.1.218 70 7/9/2024
2.1.217 90 7/9/2024
2.1.216 85 7/9/2024
2.1.215 118 7/9/2024
2.1.214 84 7/9/2024
2.1.213 89 7/8/2024
2.1.212 93 7/8/2024
2.1.211 88 7/8/2024
2.1.210 118 7/8/2024
2.1.209 88 7/8/2024
2.1.208 119 7/8/2024
2.1.207 103 7/8/2024
2.1.206 75 7/8/2024
2.1.205 103 7/8/2024
2.1.204 96 7/7/2024
2.1.203 107 7/7/2024
2.1.202 88 7/7/2024
2.1.201 102 7/7/2024
2.1.200 90 7/7/2024
2.1.199 124 7/7/2024
2.1.198 104 7/7/2024
2.1.197 142 7/3/2024
2.1.196 94 7/3/2024
2.1.195 109 7/3/2024
2.1.194 111 7/3/2024
2.1.193 100 7/3/2024
2.1.192 96 7/3/2024
2.1.191 90 7/3/2024
2.1.190 106 7/3/2024
2.1.189 232 6/27/2024
2.1.188 92 6/27/2024
2.1.187 95 6/27/2024
2.1.186 106 6/22/2024
2.1.185 97 6/22/2024
2.1.184 101 6/22/2024
2.1.183 152 6/16/2024
2.1.182 96 6/15/2024
2.1.181 94 6/15/2024
2.1.180 99 6/15/2024
2.1.179 100 6/15/2024
2.1.178 79 6/15/2024
2.1.177 99 6/15/2024
2.1.176 84 6/15/2024
2.1.175 106 6/15/2024
2.1.174 99 6/15/2024
2.1.173 100 6/14/2024
2.1.172 82 6/14/2024
2.1.171 100 6/14/2024
2.1.170 142 6/4/2024
2.1.169 103 6/4/2024
2.1.168 146 6/2/2024
2.1.167 104 6/1/2024
2.1.166 99 6/1/2024
2.1.165 98 6/1/2024
2.1.164 92 6/1/2024
2.1.163 110 6/1/2024
2.1.162 113 6/1/2024
2.1.161 86 6/1/2024
2.1.160 87 6/1/2024
2.1.159 106 6/1/2024
2.1.158 103 5/31/2024
2.1.157 99 5/31/2024
2.1.156 107 5/31/2024
2.1.155 95 5/31/2024
2.1.154 91 5/31/2024
2.1.153 132 5/29/2024
2.1.152 96 5/29/2024
2.1.151 96 5/29/2024
2.1.150 93 5/29/2024
2.1.149 88 5/29/2024
2.1.148 147 5/28/2024
2.1.147 92 5/28/2024
2.1.146 91 5/28/2024
2.1.145 91 5/28/2024
2.1.144 93 5/28/2024
2.1.143 76 5/28/2024
2.1.142 85 5/27/2024
2.1.141 83 5/27/2024
2.1.140 91 5/27/2024
2.1.139 96 5/27/2024
2.1.138 96 5/27/2024
2.1.137 79 5/27/2024
2.1.136 84 5/26/2024
2.1.135 117 5/26/2024
2.1.134 92 5/26/2024
2.1.133 100 5/26/2024
2.1.132 98 5/26/2024
2.1.131 100 5/26/2024
2.1.130 89 5/26/2024
2.1.129 86 5/26/2024
2.1.128 111 5/25/2024
2.1.127 83 5/25/2024
2.1.126 90 5/25/2024
2.1.125 86 5/25/2024
2.1.124 86 5/25/2024
2.1.123 82 5/25/2024
2.1.122 109 5/25/2024
2.1.121 88 5/25/2024
2.1.120 96 5/25/2024
2.1.119 88 5/25/2024
2.1.118 112 5/25/2024
2.1.117 116 5/23/2024
2.1.116 86 5/23/2024
2.1.115 89 5/23/2024
2.1.114 81 5/23/2024
2.1.113 105 5/23/2024
2.1.112 87 5/23/2024
2.1.111 86 5/23/2024
2.1.110 110 5/23/2024
2.1.109 86 5/23/2024
2.1.108 103 5/22/2024
2.1.107 85 5/22/2024
2.1.106 104 5/22/2024
2.1.105 86 5/22/2024
2.1.104 99 5/22/2024
2.1.103 84 5/22/2024
2.1.102 83 5/22/2024
2.1.101 99 5/22/2024
2.1.100 108 5/18/2024
2.1.99 99 5/18/2024
2.1.98 109 5/18/2024
2.1.97 90 5/18/2024
2.1.96 98 5/18/2024
2.1.95 97 5/18/2024
2.1.94 108 5/17/2024
2.1.93 107 5/17/2024
2.1.92 116 5/17/2024
2.1.91 97 5/17/2024
2.1.90 107 5/17/2024
2.1.89 102 5/17/2024
2.1.88 133 5/16/2024
2.1.87 102 5/16/2024
2.1.86 96 5/16/2024
2.1.85 106 5/15/2024
2.1.84 96 5/15/2024
2.1.83 106 5/15/2024
2.1.82 118 5/15/2024
2.1.81 95 5/15/2024
2.1.80 113 5/13/2024
2.1.79 87 5/13/2024
2.1.78 86 5/13/2024
2.1.77 86 5/13/2024
2.1.76 155 4/30/2024
2.1.75 110 4/30/2024
2.1.74 105 4/30/2024
2.1.73 97 4/30/2024
2.1.72 113 4/30/2024
2.1.71 90 4/29/2024
2.1.70 82 4/29/2024
2.1.69 111 4/29/2024
2.1.68 91 4/29/2024
2.1.67 87 4/29/2024
2.1.66 91 4/29/2024
2.1.65 91 4/28/2024
2.1.64 83 4/28/2024
2.1.63 101 4/28/2024
2.1.62 84 4/28/2024
2.1.61 88 4/28/2024
2.1.60 96 4/28/2024
2.1.59 107 4/28/2024
2.1.58 79 4/28/2024
2.1.57 95 4/28/2024
2.1.56 84 4/28/2024
2.1.55 99 4/28/2024
2.1.54 84 4/28/2024
2.1.53 99 4/28/2024
2.1.52 88 4/28/2024
2.1.51 96 4/27/2024
2.1.50 193 4/20/2024
2.1.49 109 4/20/2024
2.1.48 114 4/19/2024
2.1.47 92 4/19/2024
2.1.46 96 4/19/2024
2.1.45 80 4/19/2024
2.1.44 99 4/19/2024
2.1.43 120 4/19/2024
2.1.42 98 4/19/2024
2.1.41 106 4/18/2024
2.1.40 173 4/13/2024
2.1.39 110 4/13/2024
2.1.38 107 4/13/2024
2.1.37 106 4/13/2024
2.1.36 93 4/13/2024
2.1.35 110 4/12/2024
2.1.34 102 4/12/2024
2.1.33 88 4/12/2024
2.1.32 111 4/12/2024
2.1.31 94 4/12/2024
2.1.30 108 4/12/2024
2.1.29 104 4/12/2024
2.1.28 125 4/12/2024
2.1.27 83 4/12/2024
2.1.26 95 4/12/2024
2.1.25 96 4/12/2024
2.1.24 100 4/12/2024
2.1.23 120 4/11/2024
2.1.22 95 4/11/2024
2.1.21 124 4/10/2024
2.1.20 103 4/10/2024
2.1.19 95 4/10/2024
2.1.18 106 4/10/2024
2.1.17 96 4/10/2024
2.1.16 102 4/10/2024
2.1.15 98 4/10/2024
2.1.14 255 4/3/2024
2.1.13 94 4/2/2024
2.1.12 89 4/2/2024
2.1.11 84 4/2/2024
2.1.10 89 4/2/2024
2.1.9 71 4/2/2024
2.1.8 90 4/1/2024
2.1.7 87 4/1/2024
2.1.6 83 4/1/2024
2.1.5 96 3/31/2024
2.1.4 94 3/30/2024
2.1.3 88 3/30/2024
2.1.2 97 3/27/2024