protected static Restriction CreateORSearchKeyContentRestriction(byte[][] values, PropTag propertyTag, ContentFlags flags) { if (values.Length > 1) { Restriction[] array = new Restriction.ContentRestriction[values.Length]; for (int i = 0; i < values.Length; i++) { array[i] = Restriction.Content(propertyTag, values[i], flags); } return(Restriction.Or(array)); } if (values.Length == 1) { return(Condition.CreateSearchKeyContentRestriction(propertyTag, values[0], flags)); } return(null); }