Skip to content

Instantly share code, notes, and snippets.

View alexandre-spieser's full-sized avatar
🚀
Focusing

Alexandre SPIESER alexandre-spieser

🚀
Focusing
  • London
View GitHub Profile
@alexandre-spieser
alexandre-spieser / projectEuler.cs
Created April 26, 2018 16:31
Project Euler Gists
public void Euler1() {
var i = 1;
var sum = 0;
while(i < 1000)
{
if(i % 3 == 0 || i % 5 == 0){
sum += i;
}
i++;
@alexandre-spieser
alexandre-spieser / GetterSetterInterceptorTests.cs
Last active February 11, 2018 21:22
Registering all the get and set events on all the virtual properties of a class.
using Castle.DynamicProxy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Xunit;
namespace AlexPlayingWithDynamicProxy
{
public enum EventType