2
// <copyright see="prj:///doc/copyright.txt"/>
3
// <license see="prj:///doc/license.txt"/>
4
// <owner name="Oakland Software Incorporated" email="general@oaklandsoftware.com"/>
5
// <version>$Revision$</version>
10
namespace NoGoop.ObjBrowser
13
/// Stores the information about a type library that was opened the last
14
/// time the ComponentInspector was run.
16
public class PreviouslyOpenedTypeLibrary
18
string fileName = String.Empty;
19
string guid = String.Empty;
20
string version = String.Empty;
22
public PreviouslyOpenedTypeLibrary(string fileName, string guid, string version)
24
this.fileName = fileName;
28
if (version != null) {
29
this.version = version;
34
/// Converts from a string saved in the properties file.
36
public static PreviouslyOpenedTypeLibrary ConvertFromString(string s)
38
string[] parts = s.Split('|');
39
return new PreviouslyOpenedTypeLibrary(parts[0], parts[1], parts[2]);
43
/// Turns a PreviouslyOpenedLibrary class into a string that can be
44
/// saved in the properties file.
46
public string ConvertToString()
48
return String.Concat(fileName, "|", guid, "|", version);
51
public string FileName {
57
public string Version {