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>Inheritance
Section titled “Inheritance”Object → ResourceInfo
Implements
Section titled “Implements”Constructors
Section titled “Constructors”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)Properties
Section titled “Properties”IsLinked
Section titled “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; }Offset
Section titled “Offset”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; }Visibility
Section titled “Visibility”Whether the resource is public or private.
Returns: String
public string Visibility { get; init; }Methods
Section titled “Methods”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)Equals(object?)
Section titled “Equals(object?)”Parameters:
obj(Object)
Returns: Boolean
public override bool Equals(object? obj)Equals(ResourceInfo?)
Section titled “Equals(ResourceInfo?)”Parameters:
other(ResourceInfo)
Returns: Boolean
public bool Equals(ResourceInfo? other)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 !=(ResourceInfo?, ResourceInfo?)
Section titled “operator !=(ResourceInfo?, ResourceInfo?)”Parameters:
left(ResourceInfo)right(ResourceInfo)
Returns: Boolean
public static bool operator !=(ResourceInfo? left, ResourceInfo? right)operator ==(ResourceInfo?, ResourceInfo?)
Section titled “operator ==(ResourceInfo?, ResourceInfo?)”Parameters:
left(ResourceInfo)right(ResourceInfo)
Returns: Boolean
public static bool operator ==(ResourceInfo? left, ResourceInfo? right)