public static object SetQueryValue(object baseObject, string propertyName, object value, QueryOperator operatorType = QueryOperator.Equals) { object queryField = SetValue(baseObject, propertyName, value); r.SetProperty(queryField, "@operator", operatorType.MaximoValue()); r.SetProperty(queryField, "operatorSpecified", true); return(queryField); }