I hereby claim:
- I am bruno-garcia on github.
- I am brunogarcia (https://keybase.io/brunogarcia) on keybase.
- I have a public key ASCwN-0tPUXeUT287EntKXJ-lI2FFSi3bJ9EZS-LDMce_Ao
To claim this, I am signing this object:
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.Reflection; | |
[EditorBrowsable(EditorBrowsableState.Never)] | |
internal static class AssemblyExtensions | |
{ | |
/// <summary> | |
/// Whether the assembly was compiled with the optimize+ flag | |
/// </summary> |
I hereby claim:
To claim this, I am signing this object:
class Program | |
{ | |
static void Main() | |
{ | |
var a = 1; | |
ref var b = ref Increment(ref a); | |
b++; | |
var c = Increment(ref b); | |
c++; | |
System.Console.WriteLine($@"a: {a} |
[Fact] | |
public void Serialize_NullObject_ThrowsNullArgument() | |
{ | |
var sut = new MessagePackSerializer(new MessagePackOptions()); | |
Assert.Throws<ArgumentNullException>(() => { sut.Serialize((object) null); }); | |
} |
[Fact] | |
public void Serialize_NullObject_ThrowsNullArgument() | |
{ | |
var sut = new MessagePackSerializer(new MessagePackOptions()); | |
Assert.Throws<ArgumentNullException>(() => sut.Serialize((object) null)); | |
} |
public interface ISerializer | |
{ | |
ReadOnlySpan<byte> Serialize<T>(T @object); | |
object Deserialize(Type type, ReadOnlySpan<byte> bytes); | |
} |
Param ( | |
[switch] $generateReport, | |
[switch] $uploadCodecov | |
) | |
$currentPath = Split-Path $MyInvocation.MyCommand.Path | |
$coverageOutputDirectory = Join-Path $currentPath "coverage" | |
$coverageFile = "coverage-results.xml" | |
Remove-Item $coverageOutputDirectory -Force -Recurse -ErrorAction SilentlyContinue |
version: '1.0.0-alpha-{build}' | |
init: | |
- git config --global core.autocrlf true | |
# If there's a tag, use that as the version. | |
- ps: >- | |
if($env:APPVEYOR_REPO_TAG -eq "true"){Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"} | |
# Will build dependencies in release (optimize and portable pdbs) mode: | |
build_script: | |
- cmd: for /f %%a in ('dir /b test') do dotnet test -c Release test/%%a/%%a.csproj | |
after_build: |
language: csharp | |
sudo: false | |
mono: none | |
os: | |
- linux | |
- osx | |
osx_image: xcode8.1 | |
dotnet: 2.0.0 | |
dist: trusty | |
env: |
Fonte: http://gohorseprocess.wordpress.com | |
1- Pensou, não é XGH. | |
XGH não pensa, faz a primeira coisa que vem à mente. Não existe | |
segunda opção, a única opção é a mais rápida. | |
2- Existem 3 formas de se resolver um problema, a correta, a errada e | |
a XGH, que é igual à errada, só que mais rápida. |