Skip to content

Commit de5506b

Browse files
benjamin-hodgsonjaredpar
authored andcommitted
Lazily initialise All properties too
1 parent bc33161 commit de5506b

13 files changed

Lines changed: 3894 additions & 3608 deletions

File tree

Basic.Reference.Assemblies.Net461/Generated.cs

Lines changed: 394 additions & 372 deletions
Large diffs are not rendered by default.

Basic.Reference.Assemblies.Net472/Generated.cs

Lines changed: 496 additions & 474 deletions
Large diffs are not rendered by default.

Basic.Reference.Assemblies.Net50/Generated.cs

Lines changed: 332 additions & 310 deletions
Large diffs are not rendered by default.

Basic.Reference.Assemblies.Net60/Generated.cs

Lines changed: 346 additions & 324 deletions
Large diffs are not rendered by default.

Basic.Reference.Assemblies.Net60Windows/Generated.cs

Lines changed: 122 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -158,56 +158,67 @@ public static class ReferenceInfos
158158
public static ReferenceInfo UIAutomationTypes => new ReferenceInfo("UIAutomationTypes.dll", Resources.UIAutomationTypes, Net60Windows.References.UIAutomationTypes, global::System.Guid.Parse("f5f716d1-9b7e-4836-bab7-a32beced52c5"));
159159
public static ReferenceInfo WindowsBase => new ReferenceInfo("WindowsBase.dll", Resources.WindowsBase, Net60Windows.References.WindowsBase, global::System.Guid.Parse("cee90dc3-193d-47c0-b952-21ddfab6d351"));
160160
public static ReferenceInfo WindowsFormsIntegration => new ReferenceInfo("WindowsFormsIntegration.dll", Resources.WindowsFormsIntegration, Net60Windows.References.WindowsFormsIntegration, global::System.Guid.Parse("5be5603b-d992-4de1-9506-0aa668e3ed90"));
161-
public static IEnumerable<ReferenceInfo> All => new []
162-
{
163-
Accessibility,
164-
MicrosoftVisualBasic,
165-
MicrosoftVisualBasicForms,
166-
MicrosoftWin32RegistryAccessControl,
167-
MicrosoftWin32SystemEvents,
168-
PresentationCore,
169-
PresentationFrameworkAero,
170-
PresentationFrameworkAero2,
171-
PresentationFrameworkAeroLite,
172-
PresentationFrameworkClassic,
173-
PresentationFramework,
174-
PresentationFrameworkLuna,
175-
PresentationFrameworkRoyale,
176-
PresentationUI,
177-
ReachFramework,
178-
SystemCodeDom,
179-
SystemConfigurationConfigurationManager,
180-
SystemDesign,
181-
SystemDiagnosticsEventLog,
182-
SystemDiagnosticsPerformanceCounter,
183-
SystemDirectoryServices,
184-
SystemDrawingCommon,
185-
SystemDrawingDesign,
186-
SystemDrawing,
187-
SystemIOPackaging,
188-
SystemPrinting,
189-
SystemResourcesExtensions,
190-
SystemSecurityCryptographyPkcs,
191-
SystemSecurityCryptographyProtectedData,
192-
SystemSecurityCryptographyXml,
193-
SystemSecurityPermissions,
194-
SystemThreadingAccessControl,
195-
SystemWindowsControlsRibbon,
196-
SystemWindowsExtensions,
197-
SystemWindowsFormsDesign,
198-
SystemWindowsFormsDesignEditors,
199-
SystemWindowsForms,
200-
SystemWindowsFormsPrimitives,
201-
SystemWindowsInputManipulations,
202-
SystemWindowsPresentation,
203-
SystemXaml,
204-
UIAutomationClient,
205-
UIAutomationClientSideProviders,
206-
UIAutomationProvider,
207-
UIAutomationTypes,
208-
WindowsBase,
209-
WindowsFormsIntegration,
210-
};
161+
private static ReferenceInfo[]? _all;
162+
public static IEnumerable<ReferenceInfo> All
163+
{
164+
get
165+
{
166+
if (_all == null)
167+
{
168+
_all = new[]
169+
{
170+
Accessibility,
171+
MicrosoftVisualBasic,
172+
MicrosoftVisualBasicForms,
173+
MicrosoftWin32RegistryAccessControl,
174+
MicrosoftWin32SystemEvents,
175+
PresentationCore,
176+
PresentationFrameworkAero,
177+
PresentationFrameworkAero2,
178+
PresentationFrameworkAeroLite,
179+
PresentationFrameworkClassic,
180+
PresentationFramework,
181+
PresentationFrameworkLuna,
182+
PresentationFrameworkRoyale,
183+
PresentationUI,
184+
ReachFramework,
185+
SystemCodeDom,
186+
SystemConfigurationConfigurationManager,
187+
SystemDesign,
188+
SystemDiagnosticsEventLog,
189+
SystemDiagnosticsPerformanceCounter,
190+
SystemDirectoryServices,
191+
SystemDrawingCommon,
192+
SystemDrawingDesign,
193+
SystemDrawing,
194+
SystemIOPackaging,
195+
SystemPrinting,
196+
SystemResourcesExtensions,
197+
SystemSecurityCryptographyPkcs,
198+
SystemSecurityCryptographyProtectedData,
199+
SystemSecurityCryptographyXml,
200+
SystemSecurityPermissions,
201+
SystemThreadingAccessControl,
202+
SystemWindowsControlsRibbon,
203+
SystemWindowsExtensions,
204+
SystemWindowsFormsDesign,
205+
SystemWindowsFormsDesignEditors,
206+
SystemWindowsForms,
207+
SystemWindowsFormsPrimitives,
208+
SystemWindowsInputManipulations,
209+
SystemWindowsPresentation,
210+
SystemXaml,
211+
UIAutomationClient,
212+
UIAutomationClientSideProviders,
213+
UIAutomationProvider,
214+
UIAutomationTypes,
215+
WindowsBase,
216+
WindowsFormsIntegration,
217+
};
218+
}
219+
return _all;
220+
}
221+
}
211222

212223
public static IEnumerable<(string FileName, byte[] ImageBytes, PortableExecutableReference Reference, Guid Mvid)> AllValues => All.Select(x => x.AsTuple());
213224
}
@@ -827,56 +838,67 @@ public static PortableExecutableReference WindowsFormsIntegration
827838
}
828839
}
829840

830-
public static IEnumerable<PortableExecutableReference> All => new PortableExecutableReference[]
831-
{
832-
Accessibility,
833-
MicrosoftVisualBasic,
834-
MicrosoftVisualBasicForms,
835-
MicrosoftWin32RegistryAccessControl,
836-
MicrosoftWin32SystemEvents,
837-
PresentationCore,
838-
PresentationFrameworkAero,
839-
PresentationFrameworkAero2,
840-
PresentationFrameworkAeroLite,
841-
PresentationFrameworkClassic,
842-
PresentationFramework,
843-
PresentationFrameworkLuna,
844-
PresentationFrameworkRoyale,
845-
PresentationUI,
846-
ReachFramework,
847-
SystemCodeDom,
848-
SystemConfigurationConfigurationManager,
849-
SystemDesign,
850-
SystemDiagnosticsEventLog,
851-
SystemDiagnosticsPerformanceCounter,
852-
SystemDirectoryServices,
853-
SystemDrawingCommon,
854-
SystemDrawingDesign,
855-
SystemDrawing,
856-
SystemIOPackaging,
857-
SystemPrinting,
858-
SystemResourcesExtensions,
859-
SystemSecurityCryptographyPkcs,
860-
SystemSecurityCryptographyProtectedData,
861-
SystemSecurityCryptographyXml,
862-
SystemSecurityPermissions,
863-
SystemThreadingAccessControl,
864-
SystemWindowsControlsRibbon,
865-
SystemWindowsExtensions,
866-
SystemWindowsFormsDesign,
867-
SystemWindowsFormsDesignEditors,
868-
SystemWindowsForms,
869-
SystemWindowsFormsPrimitives,
870-
SystemWindowsInputManipulations,
871-
SystemWindowsPresentation,
872-
SystemXaml,
873-
UIAutomationClient,
874-
UIAutomationClientSideProviders,
875-
UIAutomationProvider,
876-
UIAutomationTypes,
877-
WindowsBase,
878-
WindowsFormsIntegration,
879-
};
841+
private static PortableExecutableReference[]? _all;
842+
public static IEnumerable<PortableExecutableReference> All
843+
{
844+
get
845+
{
846+
if (_all == null)
847+
{
848+
_all = new PortableExecutableReference[]
849+
{
850+
Accessibility,
851+
MicrosoftVisualBasic,
852+
MicrosoftVisualBasicForms,
853+
MicrosoftWin32RegistryAccessControl,
854+
MicrosoftWin32SystemEvents,
855+
PresentationCore,
856+
PresentationFrameworkAero,
857+
PresentationFrameworkAero2,
858+
PresentationFrameworkAeroLite,
859+
PresentationFrameworkClassic,
860+
PresentationFramework,
861+
PresentationFrameworkLuna,
862+
PresentationFrameworkRoyale,
863+
PresentationUI,
864+
ReachFramework,
865+
SystemCodeDom,
866+
SystemConfigurationConfigurationManager,
867+
SystemDesign,
868+
SystemDiagnosticsEventLog,
869+
SystemDiagnosticsPerformanceCounter,
870+
SystemDirectoryServices,
871+
SystemDrawingCommon,
872+
SystemDrawingDesign,
873+
SystemDrawing,
874+
SystemIOPackaging,
875+
SystemPrinting,
876+
SystemResourcesExtensions,
877+
SystemSecurityCryptographyPkcs,
878+
SystemSecurityCryptographyProtectedData,
879+
SystemSecurityCryptographyXml,
880+
SystemSecurityPermissions,
881+
SystemThreadingAccessControl,
882+
SystemWindowsControlsRibbon,
883+
SystemWindowsExtensions,
884+
SystemWindowsFormsDesign,
885+
SystemWindowsFormsDesignEditors,
886+
SystemWindowsForms,
887+
SystemWindowsFormsPrimitives,
888+
SystemWindowsInputManipulations,
889+
SystemWindowsPresentation,
890+
SystemXaml,
891+
UIAutomationClient,
892+
UIAutomationClientSideProviders,
893+
UIAutomationProvider,
894+
UIAutomationTypes,
895+
WindowsBase,
896+
WindowsFormsIntegration,
897+
};
898+
}
899+
return _all;
900+
}
901+
}
880902
}
881903
}
882904
}

0 commit comments

Comments
 (0)