private static void ProcessCustomProperties(IDocumentReader reader, FCS.Lite.Base.IAbstractTextType textType) { FCS.Lite.Base.IAbstractTextType basicTextType = textType; if (basicTextType == null) return; for (int i = 0; i < textType.GetChildCount(); ++i) { FCS.Lite.Base.IAbstractTextNode textNode = basicTextType.GetChild(i); List<FCS.Lite.Base.NodeInfo>.Enumerator enumer = textNode.InfoEnumerator(); string name = ""; string value = ""; string type = ""; while (enumer.MoveNext()) { if (enumer.Current.name == "Name") name = enumer.Current.value; else if (enumer.Current.name == "Value") { value = enumer.Current.value; type = enumer.Current.type.ToString(); } } switch (textType.GetContentType()) { case Workshare.FCS.Lite.Base.ContentType.CustomProperty: reader.OnCustomProperty(name, value, type); break; case Workshare.FCS.Lite.Base.ContentType.WorkshareProperty: reader.OnWorkshareProperty(name, value, type); break; default: break; } } }