NameValueCollectionExtensions Class

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Collections.Extensions
Assembly Skybrud.Essentials.dll
Visibility Public
Keywords Static
Inheritance Object

Class with various extension methods for NameValueCollection .

public static class NameValueCollectionExtensions { }

Methods

Returns whether collection contains an item with the specified key.

Returns the boolean value of the item with key. If an matching isn't found, or conversion to a boolean representation failed, false is returned instead.

Returns the boolean value of the item with key. If an matching isn't found, or conversion to a boolean representation failed, fallback is returned instead.

Returns the int value of the item with the specified key, or 0 if a matching item couldn't be found or the value couldn't be parsed to an integer.

Returns the int value of the item with the specified key, or 0 if a matching item couldn't be found or the value couldn't be parsed to an integer.

Gets the boolean value associated with the specified key.

Gets the int value associated with the specified key.

Gets the value associated with the specified key.