Repository navigation
More code cleanup - #1711
More code cleanup#1711
Conversation
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-rock-09b78921e-1711.westus2.azurestaticapps.net |
Updated `Directory.Build.props` to enable implicit usings and enhanced nullability checks. Removed `netcoreapp3.1` specific properties from `Directory.Build.targets` and added an `ItemGroup` to eliminate conflicting using directives.
- Added `CultureInfo.CurrentCulture` to string formatting methods for better localization support. - Refactored several classes to use nullable reference types, improving type safety and robustness. - Updated `DownloadPackage` method for better readability and async/await consistency. - Cleaned up `using` directives and improved organization across multiple files. - Restructured `NuspecMetadata.Schema.cs` with partial classes for better maintainability.
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-rock-09b78921e-1711.westus2.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-rock-09b78921e-1711.westus2.azurestaticapps.net |
1 similar comment
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-rock-09b78921e-1711.westus2.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-rock-09b78921e-1711.westus2.azurestaticapps.net |
- Cleaned up unnecessary using directives and organized imports. - Updated string handling to use modern techniques, including the range operator. - Enhanced type safety by implementing nullable reference types in properties and method signatures. - Improved error handling with null checks in view model creation methods. - Ensured property initializations are non-null using the null-forgiving operator. - Updated interface method signatures to return nullable types for clarity. - Refactored methods for improved clarity and efficiency in package processing. - Made UI-related code adjustments to prevent potential runtime errors with null checks. - Added and modified comments for better documentation and maintainability.
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-rock-09b78921e-1711.westus2.azurestaticapps.net |
This commit modifies several class definitions to be `partial` for trimming and WinRT ABI
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-rock-09b78921e-1711.westus2.azurestaticapps.net |
PR Classification
Code cleanup and improvements to enhance readability, maintainability, and type safety.
PR Summary
This pull request refactors several files to improve code clarity, enforce nullability, and update data structures for better performance. Key changes include:
AssemblyDebugParser.cs: Refactored to useList<T>and added nullability checks.StreamExtensions.cs: UpdatedReadAllBytesto useReadExactlyfor improved robustness.AppVersionTelemetryInitializer.cs: Changed_propertiesto be readonly for better encapsulation.DictionaryExtensions.cs: Updated methods to handle nullable types, enhancing type safety.FeedPackagePickerViewModel.cs: Constructor updated to handle nullable parameters and improved refresh logic.