public BindingRestrictionsProxyProxy(object proxy) { _proxy = proxy; if (_isEmpty == null) { Type type = _proxy.GetType(); _isEmpty = type.GetProperty("IsEmpty"); _test = type.GetProperty("Test"); _restrictions = type.GetProperty("Restrictions"); } }