2 instantiations of Entry
Microsoft.Extensions.FileProviders.Embedded.Manifest.Task (2)
Entry.cs (2)
26
new
Entry
{ Name = name };
29
new
Entry
{ Name = name, AssemblyResourceName = assemblyResourceName, IsFile = true };
21 references to Entry
Microsoft.Extensions.FileProviders.Embedded.Manifest.Task (21)
Entry.cs (14)
15
public class Entry : IEquatable<
Entry
>
23
public ISet<
Entry
> Children { get; } = new SortedSet<
Entry
>(NameComparer.Instance);
25
public static
Entry
Directory(string name) =>
28
public static
Entry
File(string name, string assemblyResourceName) =>
31
internal void AddChild(
Entry
child)
46
internal
Entry
GetDirectory(string currentSegment)
53
foreach (
var
child in Children)
71
public bool Equals(
Entry
other)
93
private static bool SameChildren(ISet<
Entry
> left, ISet<
Entry
> right)
113
private sealed class NameComparer : IComparer<
Entry
>
117
public int Compare(
Entry
x,
Entry
y) =>
Manifest.cs (7)
12
public
Entry
Root { get; set; } =
Entry
.Directory("");
27
var
current = Root;
31
var
next = current.GetDirectory(currentSegment);
34
next =
Entry
.Directory(currentSegment);
40
current.AddChild(
Entry
.File(paths[paths.Length - 1], assemblyResourceName));
56
private XElement BuildNode(
Entry
entry)