refactor(dcl): simplify ValueFormatter now that SDK returns native .NET arrays
The LmxProxy client's ExtractArrayValue now returns proper .NET arrays (bool[], int[], DateTime[], etc.) instead of ArrayValue objects. Removed the reflection-based FormatArrayContainer logic — IEnumerable handling is sufficient for all array types.
This commit is contained in:
@@ -234,8 +234,8 @@ public class LmxProxyDataConnection : IDataConnection
|
||||
|
||||
/// <summary>
|
||||
/// Normalizes a Vtq value for consumption by the rest of the system.
|
||||
/// Converts LmxProxy ArrayValue objects to comma-separated strings
|
||||
/// so downstream code doesn't need to know about LmxProxy domain types.
|
||||
/// Converts .NET arrays (bool[], int[], DateTime[], etc.) to comma-separated
|
||||
/// display strings so downstream code sees simple string representations.
|
||||
/// </summary>
|
||||
private static object? NormalizeValue(object? value) => value switch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user