private static void Add(IDictionary <string, PluginPoint> extensions, PluginPoint plugin) { if (extensions[plugin.Name()] != null) { throw new System.ArgumentException("This plugin already has an plugin point with the name \"" + plugin.Name() + "\""); } extensions[plugin.Name()] = plugin; }
private ExtensionPointRepresentation Describe(PluginPoint extension) { ExtensionPointRepresentation representation = new ExtensionPointRepresentation(extension.Name(), extension.ForType(), extension.Description); extension.DescribeParameters(representation); return(representation); }