You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve type safety: Replace List<object> with strongly-typed records
Define SdkInfo and RuntimeInfo records for better type safety and maintainability. This eliminates the need for reflection to access properties and makes the code more robust.
- Added SdkInfo record with Version and Path properties
- Added RuntimeInfo record with Name, Version, and Path properties
- Updated GetSdkInfo to use List<SdkInfo> instead of List<object>
- Updated GetRuntimeInfo to use List<RuntimeInfo> instead of List<object>
- Simplified latestSdk access by directly using record property instead of reflection
Co-authored-by: jongalloway <[email protected]>
0 commit comments