Skip to content

NuGetFileEntry

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

Represents a file entry within a NuGet package (.nupkg).

public sealed record NuGetFileEntry : IEquatable<NuGetFileEntry>

ObjectNuGetFileEntry

NuGetFileEntry(string, string, string, long, long, bool)

Section titled “NuGetFileEntry(string, string, string, long, long, bool)”

Represents a file entry within a NuGet package (.nupkg).

Parameters:

  • Name (String): Raw, untrusted file-name portion of the archive entry path. This value is not display-safe.
  • FullPath (String): Raw, untrusted path of the entry within the package archive. This value is not a filesystem path and must be validated before extraction.
  • Directory (String): Raw, untrusted directory portion of the archive entry path, normalized only to use forward slashes. This value is not a filesystem-safe path or display-safe text.
  • CompressedSize (Int64): Compressed size in bytes inside the .nupkg.
  • UncompressedSize (Int64): Uncompressed size in bytes.
  • IsDll (Boolean): Whether the archive entry name has a .dll file extension.
public NuGetFileEntry(string Name, string FullPath, string Directory, long CompressedSize, long UncompressedSize, bool IsDll)

Compressed size in bytes inside the .nupkg.

Returns: Int64

public long CompressedSize { get; init; }

Raw, untrusted directory portion of the archive entry path, normalized only to use forward slashes. This value is not a filesystem-safe path or display-safe text.

Returns: String

public string Directory { get; init; }

Raw, untrusted path of the entry within the package archive. This value is not a filesystem path and must be validated before extraction.

Returns: String

public string FullPath { get; init; }

Whether the archive entry name has a .dll file extension.

Returns: Boolean

public bool IsDll { get; init; }

Raw, untrusted file-name portion of the archive entry path. This value is not display-safe.

Returns: String

public string Name { get; init; }

Uncompressed size in bytes.

Returns: Int64

public long UncompressedSize { get; init; }

Deconstruct(out string, out string, out string, out long, out long, out bool)

Section titled “Deconstruct(out string, out string, out string, out long, out long, out bool)”

Parameters:

public void Deconstruct(out string Name, out string FullPath, out string Directory, out long CompressedSize, out long UncompressedSize, out bool IsDll)

Parameters:

Returns: Boolean

public bool Equals(NuGetFileEntry? other)

Parameters:

Returns: Boolean

public override bool Equals(object? obj)

Returns: Int32

public override int GetHashCode()

Returns: String

public override string ToString()

operator !=(NuGetFileEntry?, NuGetFileEntry?)

Section titled “operator !=(NuGetFileEntry?, NuGetFileEntry?)”

Parameters:

Returns: Boolean

public static bool operator !=(NuGetFileEntry? left, NuGetFileEntry? right)

operator ==(NuGetFileEntry?, NuGetFileEntry?)

Section titled “operator ==(NuGetFileEntry?, NuGetFileEntry?)”

Parameters:

Returns: Boolean

public static bool operator ==(NuGetFileEntry? left, NuGetFileEntry? right)