public static IList<string> SecondaryObjectTypeIds(this ICmisObject obj) { IList<string> ids = new List<string>(); if (obj.SecondaryTypes != null) { foreach (var secondaryType in obj.SecondaryTypes) { ids.Add(secondaryType.Id); } } return ids; }