Skip to content

Instantly share code, notes, and snippets.

View philippdolder's full-sized avatar

Philipp Dolder philippdolder

View GitHub Profile
namespace LinkedList
{
public class List<T> : IEnumerable<T>, IEnumerator<T>
{
public IEnumerator<T> GetEnumerator()
{
this.current = null;
return this;
}
@philippdolder
philippdolder / FaultyExtensionMethodResolution.cs
Created April 24, 2019 07:40
Rider does not properly resolve more specific extension methods
namespace Rider
{
using System.Collections.Generic;
using System.Linq;
using Xunit;
public class FaultyExtensionMethodResolution
{
[Fact]
public void RiderResolvesWrongExtensionMethod()
@philippdolder
philippdolder / FluentAssertionsContext.cs
Created April 24, 2019 19:50
FluentAssertions own extensions
namespace Gist
{
using FluentAssertions.Execution;
using Xunit;
public class MyCustomAssertionsFacts
{
[Fact]
public void DoesNotPrintContextNicely()
{
@philippdolder
philippdolder / Setup-Windows-Defender-Exclusions-Rider.ps1
Created January 6, 2020 00:48
Windows Defender configuration for JetBrains Rider
[CmdletBinding()]
param (
[Parameter(Mandatory)]
[string]
$RiderHome
)
function Update-WindowsDefenderForRider {
[CmdletBinding()]
param (