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>Inheritance
Section titled “Inheritance”Object → NuGetFileEntry
Implements
Section titled “Implements”Constructors
Section titled “Constructors”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)Properties
Section titled “Properties”CompressedSize
Section titled “CompressedSize”Compressed size in bytes inside the .nupkg.
Returns: Int64
public long CompressedSize { get; init; }Directory
Section titled “Directory”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; }FullPath
Section titled “FullPath”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; }UncompressedSize
Section titled “UncompressedSize”Uncompressed size in bytes.
Returns: Int64
public long UncompressedSize { get; init; }Methods
Section titled “Methods”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:
Name(String)FullPath(String)Directory(String)CompressedSize(Int64)UncompressedSize(Int64)IsDll(Boolean)
public void Deconstruct(out string Name, out string FullPath, out string Directory, out long CompressedSize, out long UncompressedSize, out bool IsDll)Equals(NuGetFileEntry?)
Section titled “Equals(NuGetFileEntry?)”Parameters:
other(NuGetFileEntry)
Returns: Boolean
public bool Equals(NuGetFileEntry? other)Equals(object?)
Section titled “Equals(object?)”Parameters:
obj(Object)
Returns: Boolean
public override bool Equals(object? obj)GetHashCode()
Section titled “GetHashCode()”Returns: Int32
public override int GetHashCode()ToString()
Section titled “ToString()”Returns: String
public override string ToString()Members
Section titled “Members”operator !=(NuGetFileEntry?, NuGetFileEntry?)
Section titled “operator !=(NuGetFileEntry?, NuGetFileEntry?)”Parameters:
left(NuGetFileEntry)right(NuGetFileEntry)
Returns: Boolean
public static bool operator !=(NuGetFileEntry? left, NuGetFileEntry? right)operator ==(NuGetFileEntry?, NuGetFileEntry?)
Section titled “operator ==(NuGetFileEntry?, NuGetFileEntry?)”Parameters:
left(NuGetFileEntry)right(NuGetFileEntry)
Returns: Boolean
public static bool operator ==(NuGetFileEntry? left, NuGetFileEntry? right)