Skip to content

ResourceInfo

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

Information about a managed resource embedded in the assembly.

public sealed record ResourceInfo : IEquatable<ResourceInfo>

ObjectResourceInfo

ResourceInfo(string, string, int, long, bool)

Section titled “ResourceInfo(string, string, int, long, bool)”

Information about a managed resource embedded in the assembly.

Parameters:

  • Name (String): The name of the resource.
  • Visibility (String): Whether the resource is public or private.
  • Offset (Int32): The byte offset of the resource data within the resources section.
  • Size (Int64): The size of the resource data in bytes, or -1 if unknown.
  • IsLinked (Boolean): Whether this is a linked (external) resource rather than embedded.
public ResourceInfo(string Name, string Visibility, int Offset, long Size, bool IsLinked)

Whether this is a linked (external) resource rather than embedded.

Returns: Boolean

public bool IsLinked { get; init; }

The name of the resource.

Returns: String

public string Name { get; init; }

The byte offset of the resource data within the resources section.

Returns: Int32

public int Offset { get; init; }

The size of the resource data in bytes, or -1 if unknown.

Returns: Int64

public long Size { get; init; }

Whether the resource is public or private.

Returns: String

public string Visibility { get; init; }

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

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

Parameters:

public void Deconstruct(out string Name, out string Visibility, out int Offset, out long Size, out bool IsLinked)

Parameters:

Returns: Boolean

public override bool Equals(object? obj)

Parameters:

Returns: Boolean

public bool Equals(ResourceInfo? other)

Returns: Int32

public override int GetHashCode()

Returns: String

public override string ToString()

Parameters:

Returns: Boolean

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

Parameters:

Returns: Boolean

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