Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.