public static IPropertiesContainer ReadProperties(Stream stream, string id)
 {
     PropertiesContainer properties = new PropertiesContainer(id);
     StreamReader streamReader = new StreamReader(stream);
     ParseStream(streamReader, properties);
     return properties;
 }
 public static IPropertiesContainer ReadProperties(string content, string id)
 {
     PropertiesContainer properties = new PropertiesContainer(id);
     StringReader reader = new StringReader(content);
     ParseStream(reader, properties);
     return properties;
 }
 public DualPropertiesContainer(string id)
 {
     this.id = id;
     userProperties = new PropertiesContainer("User:"******"Default:" + id, true);
     allProperties = new PropertiesContainer("All:" + id, true);
     writeEnabledContainers = new PropertiesContainer[] { userProperties, allProperties };
 }
Beispiel #4
0
 public DualPropertiesContainer(string id)
 {
     this.id                = id;
     userProperties         = new PropertiesContainer("User:"******"Default:" + id, true);
     allProperties          = new PropertiesContainer("All:" + id, true);
     writeEnabledContainers = new PropertiesContainer[] { userProperties, allProperties };
 }