Example #1
0
        public virtual object AskProperty(string query, string culture)
        {
            var property = RegexPatternAttribute.MatchProperty(this.GetType(), query, culture);

            if (property != null)
            {
                return(property.GetValue(this));
            }
            return(NotFound);
        }
 public RegexPatternDrawerAttribute(RegexPatternAttribute attribute)
 {
     this.regexString = attribute.regexString;
     try
     {
         regex = new Regex(regexString);
     }
     catch (Exception e)
     {
         regex = new Regex(".*");
         Debug.LogError(e.Message);
     }
 }