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 System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Media; | |
using System.Windows.Media.Imaging; |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Reactive; | |
using System.Reactive.Linq; | |
using System.Reactive.Subjects; | |
namespace ObservableTests |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication2 | |
{ | |
class FmodProxy: IDisposable |
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 Wow64RedirectDisabler : IDisposable | |
{ | |
IntPtr ptr ; | |
public Wow64RedirectDisabler() | |
{ | |
this.ptr = new IntPtr(); | |
bool success = NativeMethods.Wow64DisableWow64FsRedirection(ref ptr); | |
Console.WriteLine("Disable Wow64 FS redirection success: " + success); |
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 System; | |
using System.Threading.Tasks; | |
namespace Microsoft.Practices.Prism.Interactivity.InteractionRequest | |
{ | |
public static class InteractionRequestMixins | |
{ | |
public static async Task<T> RaiseAsync<T>(this InteractionRequest<T> request, T context) where T : INotification | |
{ | |
return await AwaitCallbackResult<T>(callback => request.Raise(context, callback)); |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reactive; | |
using System.Reactive.Linq; | |
using System.Reactive.Subjects; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.Reactive.Testing; |
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
enum NonCopyable { | |
Node ( Box<NonCopyable> ), | |
Leaf | |
} | |
fn do_stuff() -> NonCopyable { | |
let x = NonCopyable::Leaf; | |
match try_wrap(x) { | |
(val, true) => val, | |
(val, false) => val, |
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 System; | |
using System.Runtime.InteropServices; | |
namespace SetTouchSettings | |
{ | |
class Program | |
{ | |
private static class NativeMethods | |
{ | |
[DllImport("user32.dll", EntryPoint = "SystemParametersInfo", SetLastError = true)] |
OlderNewer