Closed
Description
-
Maintain consistency instead of using below implementations
#if TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS if (Hybrid) { HybridImplementation } else { NotHybridImplementation } #else NotHybridImplementation #endif
#if TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS if (Hybrid) { HybridImplementation } #endif NotHybridImplementation
Use below code , this avoids duplicating the
NotHybridImplementation
logic.#if TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS if (Hybrid) { HybridImplementation } else #endif { NotHybridImplementation }
-
Renameimplemented by [iOS][non-icu] HybridGlobalization clean up the code #96974IsHybridGlobalizationOnOSX
toIsHybridGlobalizationOniOS
https://github.com/dotnet/runtime/blob/main/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs#L369
Contributes to #80689