I hereby claim:
- I am simon-reynolds on github.
- I am simontaite (https://keybase.io/simontaite) on keybase.
- I have a public key ASDdaDEI0sgtlhtQObzvOjiTsdi4uHTfldN6pZAtTJrHtwo
To claim this, I am signing this object:
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Xunit; | |
using Xunit.Abstractions; | |
namespace ListToTree | |
{ | |
public class Category | |
{ |
function Get-Changes { | |
Push-Location ".." | |
$branch= &git rev-parse --abbrev-ref HEAD | |
Write-Host "Current branch: " $branch | |
if ($defaultBranches -Contains $branch) { | |
if(git status --porcelain | Where-Object {$_ -match '^\?\?'}){ |
I hereby claim:
To claim this, I am signing this object:
public static string GetPropertyName<T>(this T type, Expression<Func<T, object>> expression) | |
{ | |
return GetPropertyName<T>(expression); | |
} | |
public static string GetPropertyName<T>(Expression<Func<T, object>> expression) | |
{ | |
var lambda = expression as LambdaExpression; | |
MemberExpression memberExpression = lambda.Body is UnaryExpression |