Exemplo n.º 1
0
 private void OnQueryValueFromText(QueryValueFromTextEventArgs e)
 {
     if (this.QueryValueFromText != null)
     {
         this.QueryValueFromText(this, e);
     }
 }
Exemplo n.º 2
0
        internal object GetValueFromText(string text, out bool hasParsingError)
        {
            object value   = null;
            bool   success = this.QueryValueFromTextCore(text, out value);

            QueryValueFromTextEventArgs e = new QueryValueFromTextEventArgs(text, value);

            e.HasParsingError = !success;

            this.OnQueryValueFromText(e);

            hasParsingError = e.HasParsingError;

            return(e.Value);
        }