Example #1
0
        internal PackageResource(PackageExplorer packageExplorer, PackageDirectory directory, IReadOnlyArchiveFile contentEntry, PackageResourceMetadataModel metadataModel)
        {
            Explorer     = packageExplorer;
            Directory    = directory;
            Dependencies = new PackageResourceDependencies(packageExplorer, metadataModel);
            Tags         = new PackageResourceTags();

            Name     = metadataModel.Name;
            FullName = metadataModel.FullName;

            Content = new PackageResourceContent(contentEntry);

            int dotIndex = contentEntry.FullName.LastIndexOf('.');

            Extension = dotIndex != -1
                                ? contentEntry.FullName.Substring(dotIndex)
                                : null;
        }
 public PackageResourceDependenciesDebugView(PackageResourceDependencies source)
 {
     this.source = source;
 }