PowerArgs.Cli.MarkupExtensionAttribute.MarkupExtensionAttribute C# (CSharp) Method

MarkupExtensionAttribute() public method

Creates a markup extension given an attribute name and a processor type
public MarkupExtensionAttribute ( string attributeName, Type processorType ) : System
attributeName string The markup attribute name that you're adding support for
processorType System.Type The processor type that must implement IMarkupProcessor
return System
        public MarkupExtensionAttribute(string attributeName, Type processorType)
        {
            this.AttributeName = attributeName;
            this.Processor = (IMarkupProcessor)Activator.CreateInstance(processorType);
        }
MarkupExtensionAttribute