fCraft.MapConversion.INIFile.this C# (CSharp) Method

this() public method

public this ( [ section, [ key ) : string
section [
key [
return string
        public string this[[NotNull] string section, [NotNull] string key] {
            get {
                if ( section == null )
                    throw new ArgumentNullException( "section" );
                if ( key == null )
                    throw new ArgumentNullException( "key" );
                return contents[section][key];
            }
            set {
                if ( section == null )
                    throw new ArgumentNullException( "section" );
                if ( key == null )
                    throw new ArgumentNullException( "key" );
                if ( value == null )
                    throw new ArgumentNullException( "value" );
                if ( !contents.ContainsKey( section ) ) {
                    contents[section] = new Dictionary<string, string>();
                }
                contents[section][key] = value;
            }
        }