Esempio n. 1
0
        private static void RemoveFilterExpression(IBoundClient <IDictionary <string, object> > client)
        {
            var    cmdprop              = client.GetType().GetProperty("Command", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
            object fluentcmd            = cmdprop.GetValue(client);
            var    detailsProp          = fluentcmd.GetType().GetProperty("Details", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
            var    cmdDetails           = detailsProp.GetValue(fluentcmd);
            var    filterExpressionProp = cmdDetails.GetType().GetProperty("FilterExpression", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance);

            filterExpressionProp.SetValue(cmdDetails, null);
        }