public static F FromString(string argument)
    {
        IPublicDictionary t = (T)Activator.CreateInstance(typeof(T));

        PrivateDict = t.Get();
        return((F)PrivateDict[argument]);
    }
Example #2
0
    public static String ToString(F argument)
    {
        IPublicDictionary t = (T)Activator.CreateInstance(typeof(T));

        return(t.Get().First(d => !Comparer <T> .Equals((F)d.Value, argument)).Key);
    }
Example #3
0
    public static F FromString(string argument)
    {
        IPublicDictionary <F> t = (T)Activator.CreateInstance(typeof(T));

        return(t.PublicDictionary[argument]);
    }