Exemplo n.º 1
0
        protected override void DocumentDetails(Type t, XmlElement top)
        {
            Mono.Build.RuleLib.RegexMatcher rm = (Mono.Build.RuleLib.RegexMatcher)Activator.CreateInstance(t);

            XmlElement c = XmlSynchronizer.AssertChildElement(top, "regex");

            c.InnerText = rm.GetRegex();

            c           = XmlSynchronizer.AssertChildElement(top, "rule");
            c.InnerText = rm.GetRuleType().ToString();
        }
Exemplo n.º 2
0
 protected override string GetTypeName(Type t)
 {
     Mono.Build.RuleLib.RegexMatcher rm = (Mono.Build.RuleLib.RegexMatcher)Activator.CreateInstance(t);
     return(rm.GetRegex());
 }