Soenneker.SmartEnum.Abbreviated 2.1.102

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.102                
NuGet\Install-Package Soenneker.SmartEnum.Abbreviated -Version 2.1.102                
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.102" />                
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.102                
#r "nuget: Soenneker.SmartEnum.Abbreviated, 2.1.102"                
#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.102

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

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