protected void WriteSelectElement(string typeName, string elementName)
{
switch (typeName)
{
case "Double[]":
case "IEnumerable<Double>":
case "IEnumerable<String>":
case "MagickImage":
Write("element");
if (!string.IsNullOrEmpty(elementName))
{
Write("[\"");
Write(elementName);
Write("\"]");
}
break;
case "IEnumerable<Drawable>":
case "IEnumerable<MagickGeometry>":
case "IEnumerable<IPath>":
case "IEnumerable<PathArc>":
case "IEnumerable<PointD>":
case "ImageProfile":
case "IReadDefines":
case "PrimaryInfo":
Write("element");
break;
case "ColorProfile":
case "IDefines":
case "MagickSettings":
case "MontageSettings":
case "PixelStorageSettings":
case "QuantizeSettings":
Write("element[\"");
Write(elementName);
Write("\"]");
break;
default:
throw new NotImplementedException("WriteSelectElement: " + typeName);
}
}