2 // <copyright see="prj:///doc/copyright.txt"/>
3 // <license see="prj:///doc/license.txt"/>
4 // <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
5 // <version value="$version"/>
9 using System.Reflection;
12 /// Indicates that field should be treated as a xml attribute for the codon or condition.
13 /// The field is treated as a array, separated by ',' example :
14 /// fileextensions = ".cpp,.cc,.C"
16 [AttributeUsage(AttributeTargets.Field, Inherited=true)]
17 public class XmlMemberArrayAttribute : Attribute
19 char[] separator = new char[] { ',' };
24 /// Constructs a new instance.
26 public XmlMemberArrayAttribute(string name)
32 public char[] Separator {
42 /// The name of the attribute.
54 /// returns <code>true</code> if this attribute is required.
56 public bool IsRequired {
69 [XmlMemberArrayAttribute("shortcut", Separator=new char[] { '|'})]
72 public static void Main () { }