public static dynamic GetTSObject(StringFilterExpression dynObject)
 {
     if (dynObject is null)
     {
         return(null);
     }
     return(dynObject.teklaObject);
 }
        public bool FilterStrings(object o)
        {
            var str = o as NdfStringReference;

            if (str == null || StringFilterExpression == string.Empty)
            {
                return(true);
            }

            return(str.Value.ToLower().Contains(StringFilterExpression.ToLower()) ||
                   str.Id.ToString(CultureInfo.CurrentCulture).Contains(StringFilterExpression));
        }