コード例 #1
0
    public static List <string> GetContext(EventType typeContext)
    {
        if (context == null)
        {
            context = new MultiDictionary <EventType, string>();
        }

        //TESTING PURPOSES
        //context.Remove(typeContext);

        List <string> temp;

        if (context.HasKey(typeContext))
        {
            temp = new List <string>(context.GetValues(typeContext));
        }
        else
        {
            ReadContextFromFile(typeContext);
            temp = new List <string>(context.GetValues(typeContext));
        }

        return(temp);
    }