/// <summary> /// Gets a value indicating whether the collection contains the specified <see cref="BaseConfigInfoCollection">BaseConfigInfoCollection</see>. /// </summary> /// <param name="value">The <see cref="BaseConfigInfoCollection">BaseConfigInfoCollection</see> to search for in the collection.</param> /// <returns><b>true</b> if the collection contains the specified object; otherwise, <b>false</b>.</returns> public bool Contains(BaseConfigInfo value) { return(this.List.Contains(value)); }
public int Add(BaseConfigInfo value) { return(this.List.Add(value)); }
public void Remove(BaseConfigInfo value) { List.Remove(value); }
public void Insert(int index, BaseConfigInfo value) { List.Insert(index, value); }
/// <summary> /// Gets the index in the collection of the specified <see cref="BaseConfigInfoCollection">BaseConfigInfoCollection</see>, if it exists in the collection. /// </summary> /// <param name="value">The <see cref="BaseConfigInfoCollection">BaseConfigInfoCollection</see> to locate in the collection.</param> /// <returns>The index in the collection of the specified object, if found; otherwise, -1.</returns> public int IndexOf(BaseConfigInfo value) { return(this.List.IndexOf(value)); }
/// <summary> /// 初始化文件修改时间和对象实例 /// </summary> static BaseConfigFileManager() { m_fileoldchange = System.IO.File.GetLastWriteTime(ConfigFilePath); m_configinfo = (BaseConfigInfo)DefaultConfigFileManager.DeserializeInfo(ConfigFilePath, typeof(BaseConfigInfo)); }