ToolBX.OutWarden 2.0.0-beta1

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

// Install ToolBX.OutWarden as a Cake Tool
#tool nuget:?package=ToolBX.OutWarden&version=2.0.0-beta1&prerelease

OutWarden

OutWarden

Protects your code from pesky 'out' keywords by providing a TryGetResult type.

//Here's what classic "tryget" code looks like
public bool TryGetJeans(Pants value, out Jeans jeans)
{
    ...
}

//We've all done that (not really) but let's look a cleaner alternative...
public TryGetResult<Jeans> TryGetJeans(Pants value)
{
    ...
}

"What sorcery is this", I hear you say? Indeed! Who would have thought about returning values in a return statement rather than entry parameters. That is just blasphemous.

Is that it?

Oh yes. It only adds a generic struct with a bool and value properties. That's it.

It's mostly meant as a common type library rather than a full library. Feel free to use it (or not.)

Wow, you must really hate the 'out' keyword!

I find it weird that there's not more people annoyed by it to be honest.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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.
  • net7.0

    • No dependencies.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on ToolBX.OutWarden:

Package Downloads
ToolBX.OPEX

OverPowered Enumerable eXtensions - It makes your collections OP AF!

ToolBX.EasyTypeParsing

Extension methods to make it easier to parse strings into other types.

ToolBX.Collections.Grid

An observable, dynamic two-dimensional array.

ToolBX.SimpleRepositories

Base classes and interfaces for setting up simple repositories.

ToolBX.Collections.ObservableDictionary

A dictionary that triggers an event when its content is changed.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.0 6,921 1/11/2024
2.2.0-beta2 468 11/22/2023
2.2.0-beta1 75 11/18/2023
2.0.0 12,387 11/9/2022
2.0.0-beta1 574 9/19/2022
1.0.0 1,748 9/19/2022