Esempio n. 1
0
        private void Include(string propertyPath)
        {
            propertyPath = DotPathHelper.TrimDots(propertyPath);

            while (propertyPath.Contains("."))
            {
                m_inclusions.Add(propertyPath);
                propertyPath = DotPathHelper.GetParent(propertyPath);
            }
        }
Esempio n. 2
0
 private bool IsIncluded(string propertyPath)
 {
     propertyPath = DotPathHelper.TrimDots(propertyPath);
     return(m_inclusions.Contains(propertyPath));
 }
Esempio n. 3
0
 public void TestTrimDots(string inp, string exp)
 {
     Assert.Equal(exp, DotPathHelper.TrimDots(inp));
 }