/// <summary>Initializes a new instance of the <see cref="PropertyCollection" /> class. /// </summary> /// <param name="configurationFile">The configuration file.</param> /// <param name="propertyCollectionName">The name of the property collection.</param> internal protected PropertyCollection(ConfigurationFile configurationFile, IdentifierString propertyCollectionName) { m_ConfigurationFile = configurationFile; m_PropertyCollectionName = propertyCollectionName; m_PropertyCollectionParentNode = configurationFile.GetSectionNode(propertyCollectionName.IDString, out m_ContainsSettings); }
/// <summary>Initializes a new instance of the <see cref="Table" /> class. /// </summary> /// <param name="configurationFile">The configuration file.</param> /// <param name="tableName">The name of the table, i.e. of the section in the XML representation of the configuration file.</param> /// <param name="tableEntryName">The name of each data table entry.</param> /// <param name="fieldNames">The name of each field of the data table entries.</param> internal protected Table(ConfigurationFile configurationFile, string tableName, string tableEntryName, params string[] fieldNames) { m_ConfigurationFile = configurationFile; m_TableName = new IdentifierString(tableName); m_FieldNames = fieldNames; m_Items = new DataCollection(this, configurationFile.GetSectionNode(m_TableName.IDString, out m_ContainsSettings), IdentifierString.Create(tableEntryName)); }