5.5 KiB
source_files, generated_at, model, schema_version, sha256
| source_files | generated_at | model | schema_version | sha256 | |||
|---|---|---|---|---|---|---|---|
|
2026-04-16T14:01:31.082210+00:00 | zai-org/GLM-5-FP8 | 1 | 06945b304ce6ac54 |
Documentation: DTS.Viewer Properties Namespace
1. Purpose
This module contains auto-generated infrastructure code for the DTS.Viewer WPF application, providing application settings management, assembly metadata, and localized resource access. These files serve as the configuration and resource backbone for the DTS Viewer application, enabling persistent user settings and string localization through the standard .NET settings and resource mechanisms.
2. Public Interface
Settings (Settings.Designer.cs)
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
Properties:
| Signature | Description |
|---|---|
public static Settings Default { get; } |
Returns the singleton instance of the settings class, synchronized for thread-safe access. |
Note: This class is internal, so it is only accessible within the DTS.Viewer assembly.
Resources (Resources.Designer.cs)
internal class Resources
Properties:
| Signature | Description |
|---|---|
internal static global::System.Resources.ResourceManager ResourceManager { get; } |
Returns a cached ResourceManager instance for looking up localized strings. Lazily initialized on first access. |
internal static global::System.Globalization.CultureInfo Culture { get; set; } |
Gets or sets the current thread's CurrentUICulture for resource lookups using this strongly-typed resource class. |
Constructor:
| Signature | Description |
|---|---|
internal Resources() |
Parameterless constructor. Marked with SuppressMessage for CA1811:AvoidUncalledPrivateCode. |
Note: This class is internal, so it is only accessible within the DTS.Viewer assembly.
Assembly-level Attributes (AssemblyInfo.cs)
| Attribute | Value |
|---|---|
AssemblyTitle |
"DTS.Viewer" |
AssemblyDescription |
"" (empty) |
AssemblyCompany |
"Diversified Technical Systems, Inc. (DTS)" |
AssemblyProduct |
"DTS.Viewer" |
AssemblyCopyright |
"Copyright © Microsoft 2016" |
AssemblyVersion |
"1.0.0.0" |
AssemblyFileVersion |
"1.0.0.0" |
ComVisible |
false |
ThemeInfo |
Theme dictionaries: None; Generic resources: SourceAssembly |
3. Invariants
- Singleton Pattern:
Settings.Defaultalways returns the same synchronized instance; it is never null. - Thread Safety: The
Settingsinstance returned byDefaultis created viaApplicationSettingsBase.Synchronized(), guaranteeing thread-safe access. - Lazy Initialization:
Resources.ResourceManageris lazily initialized on first access and cached in the privateresourceManfield. - Resource Location: The
ResourceManageris configured to look for resources in the resource path"DTS.Viewer.Properties.Resources"within the current assembly. - COM Visibility: All types in this assembly are not visible to COM components (
ComVisible(false)). - Auto-generation: Both
Settings.Designer.csandResources.Designer.csare tool-generated; manual modifications will be overwritten on regeneration.
4. Dependencies
This module depends on:
System.Configuration.ApplicationSettingsBase— Base class for application settings persistenceSystem.Resources.ResourceManager— Resource lookup mechanismSystem.Globalization.CultureInfo— Culture-specific resource handlingSystem.Reflection— Assembly metadata attributesSystem.Runtime.InteropServices— COM visibility attributesSystem.Windows— WPF theme resource location (ResourceDictionaryLocationenum)
What depends on this module:
Cannot be determined from source alone. These are infrastructure classes typically consumed throughout the application for settings persistence and resource localization. The actual consumers would be in other source files not provided here.
5. Gotchas
-
Auto-generated files: Both
Settings.Designer.csandResources.Designer.cscontain headers explicitly warning that manual changes will be lost if the code is regenerated. Developers should modify the corresponding.settingsand.resxfiles instead. -
Inconsistent copyright attribution: The
AssemblyCompanyattribute lists "Diversified Technical Systems, Inc. (DTS)" whileAssemblyCopyrightlists "Copyright © Microsoft 2016". This appears to be a copy-paste artifact from a project template and may need correction. -
Empty AssemblyDescription: The description attribute is empty, which may affect how the assembly appears in certain viewers or deployment tools.
-
No actual settings defined: The
Settingsclass contains no user-scoped or application-scoped settings properties beyond the default instance accessor. This suggests either the application doesn't persist settings, or settings are defined elsewhere (possibly in a.settingsfile that would generate additional properties). -
No resource strings exposed: The
Resourcesclass exposes no actual string properties. This indicates either no localized resources exist, or they would be generated from a.resxfile that is not reflected in the current generated code.