This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.App; | |
using Android.OS; | |
using Android.Support.Design.Widget; | |
using Android.Support.V7.App; | |
namespace LeakTest | |
{ | |
[Activity(Label = "@string/app_name", Theme = "@style/AppTheme.NoActionBar", MainLauncher = true)] | |
public class MainActivity : AppCompatActivity | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rx.NET name | Reactive Extensions name | |
---|---|---|
Observable.Return | Observable.just | |
Select | map | |
SelectMany | flatMap | |
Where | filter | |
Aggregate | reduce | |
Debounce | throttle | |
Synchronize | serialize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EntryPoint | |
{ | |
public static void Main(string[] args) | |
{ | |
// 1 | |
var assemblyLocation = Assembly.GetExecutingAssembly().Location; | |
var pathToOriginalDll = | |
Path.GetFullPath(Path.Combine(assemblyLocation, "../path/to/your.dll")); | |
// 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.class public auto ansi beforefieldinit WhatIWantToWrite | |
extends [System.Runtime]System.Object | |
{ | |
// Methods | |
.method public hidebysig static | |
void Main ( | |
string[] args | |
) cil managed | |
{ | |
// Method begins at RVA 0x2050 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp2.0</TargetFramework> | |
</PropertyGroup> | |
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WhatIWantToWrite | |
{ | |
public static void Main(string[] args) | |
{ | |
System.Console.WriteLine("This I wrote"); | |
} | |
} | |
public class WhatIWantToGet | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function decompile() { | |
mono /path/to/ILSpyMac.exe -t il $1 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static class MathHelpers | |
{ | |
public static bool IsEven(int number) | |
=> number % 2 == 0; | |
} | |
private class Tests | |
{ | |
[Fact] | |
public void TheEvenMethodReturnsTrueIfTheNumberIsEven() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<Weavers> | |
<PropertyChanged /> | |
</Weavers> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Woven | |
{ | |
//BaseViewModel implements INotifyPropertyChanged | |
public sealed class LoginViewModel : BaseViewModel | |
{ | |
public bool IsLoading { get; set; } | |
public string Email { get; set; } | |
public string Password { get; set; } |
NewerOlder