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

        PrivateDict = t.Get();
        return((F)PrivateDict[argument]);
    }
Esempio n. 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);
    }