public UcdCodeProperty[] GetCodeProperties(int codePoint) { if (CodeProperties.Length > 0) { int end; int i = XUtil.GetRange(_propertyRanges, codePoint, out end); if (i >= 0) { List <UcdCodeProperty> list = new List <UcdCodeProperty>(); for ( ; i < end; i++) { var prop = _propertyRanges[i].Owner; if (list.IndexOf(prop) < 0) { list.Add(prop); } } return(list.ToArray()); } } return(null); }