/// <summary>
 /// </summary>
 /// <returns></returns>
 public ICollection GetKeyCollection()
 {
     if (props == null)
     {
         props = new JavaProperties();
         props.Add("it.LabelManager.Sample.Attribute", "valore italiano");
         props.Add("en.LabelManager.Sample.Attribute", "valore inglese");
     }
     return props.Keys;
 }
        protected SingletonLabelManager()
        {
            StreamReader streamReader = null;
            try
            {
                String assemblyPath = LabelUtils.GetCurrentAssemblyExecutionPath();
                streamReader = new StreamReader(File.Open(assemblyPath + "\\international.properties", FileMode.Open));
                props = new JavaProperties();
                props.Load(streamReader.BaseStream);

            }
            catch (Exception e)
            {
                // do what you want here
            }
        }
 /// <summary>
 /// Creates an empty property list with the specified defaults.
 /// </summary>
 /// <param name="defaults">An instance of JavaProperties containing default values for the properties.</param>
 public JavaProperties(JavaProperties defaults)
 {
     this.defaults = defaults;
 }