コード例 #1
0
            public void VisitProperty(string propertyName, object value)
            {
                var v = _translator.PropertyValueToString(propertyName, value);

                if (_filter.ShouldVisitPropertyValue(v))
                {
                    _logger.LogProperty(_indent + 1, propertyName, v);
                }
            }
コード例 #2
0
            public bool ShouldVisitPropertyValue(string propertyName, object value)
            {
                string s = _translator.PropertyValueToString(propertyName, value);

                if (propertyName == "Name")
                {
                    string name = value as string;
                    return(!name.StartsWith("<reacttag>:") &&
                           name != "");
                }
                return(_filter.ShouldVisitPropertyValue(s));
            }