Skip to content

Instantly share code, notes, and snippets.

@randomvariable
Created August 29, 2013 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save randomvariable/6379313 to your computer and use it in GitHub Desktop.
Save randomvariable/6379313 to your computer and use it in GitHub Desktop.
Add-Type -TypeDefinition @"
using System;
using System.Management.Automation;
[AttributeUsageAttribute(AttributeTargets.Class)]
public class NewCustomAttribute : CmdletCommonMetadataAttribute {
public NewCustomAttribute(String test){
throw new System.Exception("just testing");
}
}
"@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment