/// <summary> /// Initializes a new instance of the <see cref="T:Linguist.Resources.ResX.ResXResourceSet" /> class /// using the default <see cref="T:Linguist.Resources.ResX.ResXResourceExtractor" /> to read resources /// from the specified stream. /// </summary> /// <param name="stream">The <see cref="T:System.IO.Stream" /> of resources to be read. The stream should refer to an existing resource file.</param> public ResXResourceSet(Stream stream) { Reader = new ResXResourceExtractor(stream); Table = new Hashtable( ); ReadResources( ); }
/// <summary> /// Initializes a new instance of a <see cref="T:Linguist.Resources.ResX.ResXResourceSet" /> class /// using the default <see cref="T:Linguist.Resources.ResX.ResXResourceExtractor" /> that opens /// and reads resources from the specified file. /// </summary> /// <param name="fileName">The name of the file to read resources from.</param> public ResXResourceSet(string fileName) { Reader = new ResXResourceExtractor(fileName); Table = new Hashtable( ); ReadResources( ); }