public static long GetRealChildrenCount(MemberData member) { //Количество дочерних узлов в кубе long childrenCount = 0; if (member != null) { PropertyData prop = member.GetMemberProperty(CHILDREN_COUNT_PROPERTY); if (prop != null) { try { childrenCount = Convert.ToInt64(prop.Value); } catch (Exception) { childrenCount = 0; } } } return(childrenCount); }