Check Page Rank of your Web site pages instantly:

IDictionary Code In C#

Dictionary<string, int> colStates = new Dictionary<string,int>();

int OtherCount = 0;

foreach(string key in colStates.Keys)
{

    double  Percent = colStates[key] / TotalCount;

    if (Percent < 0.05)
    {
        OtherCount += colStates[key];
        colStates[key] = 0;
    }
}

colStates.Add("Other", OtherCount);

0 comments:

Post a Comment