Skip to content

Instantly share code, notes, and snippets.

View Nico-VanHaaster's full-sized avatar

Nico VanHaaster Nico-VanHaaster

View GitHub Profile
@Nico-VanHaaster
Nico-VanHaaster / DelegateCommand.cs
Created March 6, 2017 04:45
This is a very useful delegate command for WPF. Note I did not write this and cant locate where I found the original source.
using System;
using System.Collections.Generic;
using System.Windows.Input;
namespace DelegateCommands
{
/// <summary>
/// This class allows delegating the commanding logic to methods passed as parameters,
/// and enables a View to bind commands to objects that are not part of the element tree.
/// </summary>
@Nico-VanHaaster
Nico-VanHaaster / DnsLookup.cs
Last active July 28, 2020 18:51
Cancel DNS.BeginGetHostEntry
using System;
using System.Net;
using System.Threading.Tasks;
namespace DnsLookup
{
class Program
{
static void Main(string[] args)
{
@Nico-VanHaaster
Nico-VanHaaster / game.cs
Created August 15, 2016 23:22
C# Console App... Rock, Paper, Scissors
using System;
using System.Collections.Generic;
namespace ConsoleApplication19
{
public class Game
{
/// <summary>
/// Selection item
/// </summary>