Commit 5ab32f0
authored
Refactor IID properties for non-projected
* Use WellKnownWindowsInterfaceIIDs for interface IIDs
Replaces direct references to interface implementation IIDs with constants from WellKnownWindowsInterfaceIIDs across multiple ABI and interop files. This change improves consistency and maintainability by centralizing interface ID definitions.
* Refactor to use WellKnownInterfaceIIDs for interface IIDs
Replaces direct references to interface IID getters (e.g., IUnknownImplget_IID) with WellKnownInterfaceIIDs static properties throughout the InteropTypeDefinitionBuilder classes. Updates InteropReferences to provide WellKnownInterfaceIIDs member references and removes obsolete per-implementation IID getters. This centralizes and simplifies access to well-known interface IIDs.
* Use WellKnownInterfaceIIDs for interface IID assignments
Replaced direct IID assignments from implementation classes with references to WindowsRuntime.InteropServices.WellKnownInterfaceIIDs constants for standard interfaces. This improves clarity and ensures consistency in IID usage.
* Add global namespace to WellKnownInterfaceIIDs references
Prefixed references to WindowsRuntime.InteropServices.WellKnownInterfaceIIDs and related implementation classes with 'global::' to ensure correct namespace resolution and avoid potential conflicts. This change improves code clarity and compatibility, especially in projects with custom or nested namespaces.___Impl types in WinRT.Runtime (#2092)1 parent 15bd298 commit 5ab32f0
File tree
50 files changed
+424
-417
lines changed- src
- WinRT.Interop.Generator
- Builders
- References
- WinRT.Runtime2
- ABI
- System
- Collections/Specialized
- ComponentModel
- Numerics
- Windows.Foundation
- Collections
- WindowsRuntime.InteropServices
- Bindables
- InteropServices
- ProjectionImpls
- cswinrt
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
50 files changed
+424
-417
lines changedLines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
Lines changed: 44 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
961 | 961 | | |
962 | 962 | | |
963 | 963 | | |
964 | | - | |
| 964 | + | |
965 | 965 | | |
966 | | - | |
967 | | - | |
| 966 | + | |
| 967 | + | |
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
971 | | - | |
| 971 | + | |
972 | 972 | | |
973 | | - | |
974 | | - | |
975 | | - | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
976 | 976 | | |
977 | 977 | | |
978 | | - | |
| 978 | + | |
979 | 979 | | |
980 | | - | |
981 | | - | |
| 980 | + | |
| 981 | + | |
982 | 982 | | |
983 | 983 | | |
984 | 984 | | |
985 | | - | |
| 985 | + | |
986 | 986 | | |
987 | | - | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
988 | 1016 | | |
989 | 1017 | | |
990 | 1018 | | |
991 | 1019 | | |
992 | | - | |
| 1020 | + | |
993 | 1021 | | |
994 | | - | |
995 | | - | |
996 | | - | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
997 | 1025 | | |
998 | 1026 | | |
999 | 1027 | | |
| |||
1016 | 1044 | | |
1017 | 1045 | | |
1018 | 1046 | | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | 1047 | | |
1027 | 1048 | | |
1028 | 1049 | | |
1029 | 1050 | | |
1030 | 1051 | | |
1031 | 1052 | | |
1032 | 1053 | | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | 1054 | | |
1041 | 1055 | | |
1042 | 1056 | | |
1043 | 1057 | | |
1044 | 1058 | | |
1045 | 1059 | | |
1046 | 1060 | | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | 1061 | | |
1055 | 1062 | | |
1056 | 1063 | | |
1057 | 1064 | | |
1058 | 1065 | | |
1059 | 1066 | | |
1060 | 1067 | | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | 1068 | | |
1069 | 1069 | | |
1070 | 1070 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments