C#: Change RegistryConfig to a record class

This commit is contained in:
Michael B. Gale
2025-03-18 16:45:41 +00:00
parent 51874b8ef0
commit 7a92a72a9a

View File

@@ -13,17 +13,9 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
/// <summary>
/// Represents configurations for package registries.
/// </summary>
public struct RegistryConfig
{
/// <summary>
/// The type of package registry.
/// </summary>
public string Type { get; set; }
/// <summary>
/// The URL of the package registry.
/// </summary>
public string URL { get; set; }
}
/// <param name="Type">The type of package registry.</param>
/// <param name="URL">The URL of the package registry.</param>
public record class RegistryConfig(string Type, string URL);
private readonly string host;
private readonly string port;