/// <summary> /// Creates a new instance. /// </summary> public ArchiveItem(string uniquePath, Assembly assembly, string resourcePath) { UniquePath = uniquePath; ResourceInfo = new ResourceInfoType() { Assembly = assembly, ResourcePath = resourcePath }; Name = string.Empty; Name = ResourceInfo.ResourcePath; var index = Name.LastIndexOf('.'); if (index > 0) { Name = Name.Substring(0, index); } index = Name.LastIndexOf('.'); if (index > 0) { Name = Name.Substring(index + 1); } }
/// <summary> /// Creates a new instance. /// </summary> public ArchiveItem(string uniquePath, Assembly assembly, string resourcePath) { UniquePath = uniquePath; ResourceInfo = new ResourceInfoType() { Assembly = assembly, ResourcePath = resourcePath }; Name = string.Empty; Name = ResourceInfo.ResourcePath; int index = Name.LastIndexOf('.'); if (index > 0) { Name = Name.Substring(0, index); } index = Name.LastIndexOf('.'); if (index > 0) { Name = Name.Substring(index+1); } }