ActivEarth.DAO.BadgeLevelInfoDAO.GetBadgeRequirementArray C# (CSharp) Метод

GetBadgeRequirementArray() публичный статический Метод

Retrieves the statistic requirements for all levels of a particular badge.
public static GetBadgeRequirementArray ( Statistic stat ) : float[]
stat Statistic Statistic for which the badge is awarded.
Результат float[]
        public static float[] GetBadgeRequirementArray(Statistic stat)
        {
            using (SqlConnection connection = ConnectionManager.GetConnection())
            {
                var data = new ActivEarthDataProvidersDataContext(connection);
                return (from c in data.BadgeConstantsDataProviders
                                    where c.statistic == (byte)stat
                                    select (float)c.requirement).ToArray();
            }
        }