コード例 #1
0
ファイル: IniFile.cs プロジェクト: myd7349/Ongoing-Study
        public bool Write <T>(string section, string key, T value, GenericConvert <T> convert)
        {
            if (convert == null)
            {
                throw new ArgumentNullException("convert");
            }

            return(Write(section, key, convert(value)));
        }
コード例 #2
0
        public static void Write <T>(this IniFile2 ini, string section, string key, T value, GenericConvert <T> convert)
        {
            ValidateIniArgument(ini);

            if (convert == null)
            {
                throw new ArgumentNullException("convert");
            }

            ini[section, key] = convert(value);
        }