Files
sql-utilities/src/Strata.SqlTools.SqlBreakdown/Classes/QueryParam.cs
T
Thom Lamb 2d9148547f
SonarQube Analysis / sonarqube (pull_request) Successful in 4m42s
fix(serialization): Remove legacy BinaryFormatter support
The `[Serializable]` attribute and corresponding `[OnDeserialized]` methods have been removed from various breakdown classes. This eliminates reliance on `BinaryFormatter`, which is a deprecated and insecure serialization mechanism in modern .NET.

This change also resolves SonarQube rule S5766 warnings by removing the context in which they apply, leading to cleaner and more secure code.
2026-05-20 17:44:21 -05:00

32 lines
780 B
C#

using Strata.SqlTools.SqlBreakdown.Interfaces.QueryEngine;
namespace Strata.SqlTools.SqlBreakdown.Classes;
/// <summary>
/// Represents a query parameter with a name and value.
/// </summary>
public sealed class QueryParam : IQueryParam
{
/// <summary>
/// Initializes a new instance of the <see cref="QueryParam"/> class.
/// </summary>
/// <param name="name">The parameter name.</param>
/// <param name="value">The parameter value.</param>
public QueryParam(string name, object value)
{
Name = name;
Value = value;
}
/// <summary>
/// Gets the parameter name.
/// </summary>
public string Name { get; }
/// <summary>
/// Gets the parameter value.
/// </summary>
public object Value { get; }
}