Skip to content

Instantly share code, notes, and snippets.

View klumsy's full-sized avatar

Karl Prosser klumsy

  • Pushpay Inc
  • Seattle , WA
View GitHub Profile
@sdether
sdether / gist:9532422
Created March 13, 2014 17:01
Easy immutable object derivation
public class Immutable {
public class Person {
public readonly string Firstname;
public readonly string Lastname;
public Person(string firstname, string lastname) {
Firstname = firstname;
Lastname = lastname;
@altrive
altrive / PowerShellv4_DynamicKeyword.md
Last active August 3, 2023 02:28
Test code of PowerShell v4 Dynamic Keyword

Define DynamicKeyword

Define DynamicKeyword 'ExecTest'

Note: Don't copy&paste from following code. PowerShell SyntaxHighlighter remove some lines. Instead, use RAW view.

#Requires -Version 4.0
Set-StrictMode -Version Latest