Soenneker.Extensions.FieldInfo 4.0.80

Prefix Reserved
dotnet add package Soenneker.Extensions.FieldInfo --version 4.0.80
                    
NuGet\Install-Package Soenneker.Extensions.FieldInfo -Version 4.0.80
                    
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.Extensions.FieldInfo" Version="4.0.80" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.FieldInfo" Version="4.0.80" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.FieldInfo" />
                    
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 Soenneker.Extensions.FieldInfo --version 4.0.80
                    
#r "nuget: Soenneker.Extensions.FieldInfo, 4.0.80"
                    
#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 Soenneker.Extensions.FieldInfo@4.0.80
                    
#: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=Soenneker.Extensions.FieldInfo&version=4.0.80
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.FieldInfo&version=4.0.80
                    
Install as a Cake Tool

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

alternate text is missing from this package README image Soenneker.Extensions.FieldInfo

Extension methods for inspecting and classifying reflection FieldInfo metadata.

Installation

dotnet add package Soenneker.Extensions.FieldInfo

Usage

using Soenneker.Extensions.FieldInfo;

FieldInfo field = typeof(HttpStatusCode).GetField(nameof(HttpStatusCode.OK))!;
bool constant = field.IsConstant(); // true

IsConstant() returns the field's IsLiteral flag. It is true for const fields and enum members, but false for static readonly fields. The FieldInfo must be non-null.

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.  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

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Extensions.FieldInfo:

Package Downloads
Soenneker.Utils.AutoBogus

The .NET Bogus autogenerator

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.80 19,404 8/29/2026
4.0.78 50 8/29/2026
4.0.77 197,184 7/27/2026
4.0.76 94,627 7/16/2026
4.0.75 139,647 6/18/2026
4.0.74 115,015 6/5/2026
4.0.73 192,240 4/22/2026
4.0.72 115,405 3/14/2026
4.0.71 127 3/12/2026
4.0.70 125 3/12/2026
4.0.67 46,776 3/10/2026
4.0.66 19,204 3/9/2026
4.0.65 130 3/9/2026
4.0.64 8,801 3/9/2026
4.0.63 40,884 3/4/2026
4.0.62 211,493 1/2/2026
4.0.61 101,999 11/20/2025
4.0.60 42,500 11/6/2025
4.0.59 31,390 10/29/2025
3.0.58 128,514 9/3/2025
Loading failed

Describe extension library scope separately from current API