editorconfig name | possible values |
---|---|
dotnet_sort_system_directives_first | true , false |
editorconfig name | possible values |
---|---|
csharp_indent_block_contents | true , false |
csharp_indent_braces | true , false |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
using System; | |
namespace FPExplained | |
{ | |
// This is a C# implementation showing what functors, applicatives and monads look like. | |
// | |
// ----><8----------------------------------- | |
// UPDATE: | |
// *********************************** | |
// For a maybe monad, all these constructs look a bit redundant; their reason of existance is more obvious |
// Licensed under the MIT license with <3 by GitHub | |
/// <summary> | |
/// An exponential back off strategy which starts with 1 second and then 4, 9, 16... | |
/// </summary> | |
[SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")] | |
public static readonly Func<int, TimeSpan> ExponentialBackoff = n => TimeSpan.FromSeconds(Math.Pow(n, 2)); | |
/// <summary> | |
/// Returns a cold observable which retries (re-subscribes to) the source observable on error up to the |