Esempio n. 1
0
        static void ProcessFile(FileInfo name, IResourceWriter writer, String prefix)
        {
            Properties properties = new Properties();

            properties.load(name.OpenRead());

            foreach (String key in properties.Keys)
            {
                writer.AddResource(prefix + key, properties.getProperty(key));
            }
        }
Esempio n. 2
0
        // Searches for the property with the specified key in this property
        // list.
        public String getProperty(String key, String defaultValue)
        {
            if (this.ContainsKey(key))
            {
                return((String)this[key]);
            }

            if (defaults != null)
            {
                return((String)defaults.getProperty(key));
            }

            return(defaultValue);
        }