From b4c3bde273859f7540a97cbde169bb0660673afa Mon Sep 17 00:00:00 2001 From: Tom Jebo Date: Thu, 24 Apr 2025 17:48:16 -0700 Subject: [PATCH 1/6] make root element properties for derived parts to be nullable --- .../Generators/Parts/PartWriter.cs | 4 +++- .../Part_AlternativeFormatImportPart.g.cs | 1 + .../Part_CalculationChainPart.g.cs | 4 +++- .../Part_CellMetadataPart.g.cs | 4 +++- .../Part_ChartColorStylePart.g.cs | 4 +++- .../Part_ChartDrawingPart.g.cs | 4 +++- .../Part_ChartPart.g.cs | 4 +++- .../Part_ChartStylePart.g.cs | 4 +++- .../Part_ChartsheetPart.g.cs | 4 +++- .../Part_CommentAuthorsPart.g.cs | 4 +++- .../Part_ConnectionsPart.g.cs | 4 +++- .../Part_ControlPropertiesPart.g.cs | 4 +++- .../Part_CoreFilePropertiesPart.g.cs | 1 + .../Part_CustomDataPart.g.cs | 1 + .../Part_CustomDataPropertiesPart.g.cs | 4 +++- .../Part_CustomFilePropertiesPart.g.cs | 4 +++- .../Part_CustomPropertyPart.g.cs | 1 + .../Part_CustomXmlMappingsPart.g.cs | 4 +++- .../Part_CustomXmlPart.g.cs | 1 + .../Part_CustomXmlPropertiesPart.g.cs | 4 +++- .../Part_CustomizationPart.g.cs | 4 +++- .../Part_DiagramColorsPart.g.cs | 4 +++- .../Part_DiagramDataPart.g.cs | 4 +++- .../Part_DiagramLayoutDefinitionPart.g.cs | 4 +++- .../Part_DiagramPersistLayoutPart.g.cs | 4 +++- .../Part_DiagramStylePart.g.cs | 4 +++- .../Part_DialogsheetPart.g.cs | 4 +++- .../Part_DigitalSignatureOriginPart.g.cs | 1 + .../Part_DocumentSettingsPart.g.cs | 4 +++- .../Part_DocumentTasksPart.g.cs | 4 +++- .../Part_DrawingsPart.g.cs | 4 +++- ..._EmbeddedControlPersistenceBinaryDataPart.g.cs | 1 + .../Part_EmbeddedControlPersistencePart.g.cs | 1 + .../Part_EmbeddedObjectPart.g.cs | 1 + .../Part_EmbeddedPackagePart.g.cs | 1 + .../Part_EndnotesPart.g.cs | 4 +++- .../Part_ExcelAttachedToolbarsPart.g.cs | 1 + .../Part_ExtendedChartPart.g.cs | 4 +++- .../Part_ExtendedFilePropertiesPart.g.cs | 4 +++- .../Part_ExternalWorkbookPart.g.cs | 4 +++- .../Part_FeaturePropertyBagsPart.g.cs | 4 +++- .../Part_FontPart.g.cs | 1 + .../Part_FontTablePart.g.cs | 4 +++- .../Part_FooterPart.g.cs | 4 +++- .../Part_FootnotesPart.g.cs | 4 +++- .../Part_GlossaryDocumentPart.g.cs | 4 +++- .../Part_HandoutMasterPart.g.cs | 4 +++- .../Part_HeaderPart.g.cs | 4 +++- .../Part_ImagePart.g.cs | 1 + .../Part_InternationalMacroSheetPart.g.cs | 1 + .../Part_LabelInfoPart.g.cs | 4 +++- .../Part_LegacyDiagramTextInfoPart.g.cs | 1 + .../Part_LegacyDiagramTextPart.g.cs | 1 + .../Part_MacroSheetPart.g.cs | 4 +++- .../Part_MailMergeRecipientDataPart.g.cs | 1 + .../Part_MainDocumentPart.g.cs | 4 +++- .../Part_Model3DReferenceRelationshipPart.g.cs | 1 + .../Part_NamedSheetViewsPart.g.cs | 4 +++- .../Part_NotesMasterPart.g.cs | 4 +++- .../Part_NotesSlidePart.g.cs | 4 +++- .../Part_NumberingDefinitionsPart.g.cs | 4 +++- .../Part_PivotTableCacheDefinitionPart.g.cs | 4 +++- .../Part_PivotTableCacheRecordsPart.g.cs | 4 +++- .../Part_PivotTablePart.g.cs | 4 +++- .../Part_PowerPointAuthorsPart.g.cs | 4 +++- .../Part_PowerPointCommentPart.g.cs | 4 +++- .../Part_PresentationDocument.g.cs | 1 + .../Part_PresentationPart.g.cs | 4 +++- .../Part_PresentationPropertiesPart.g.cs | 4 +++- .../Part_QueryTablePart.g.cs | 4 +++- ...Part_QuickAccessToolbarCustomizationsPart.g.cs | 1 + .../Part_RdArrayPart.g.cs | 4 +++- .../Part_RdRichValuePart.g.cs | 4 +++- .../Part_RdRichValueStructurePart.g.cs | 4 +++- .../Part_RdRichValueTypesPart.g.cs | 4 +++- .../Part_RdRichValueWebImagePart.g.cs | 4 +++- .../Part_RdSupportingPropertyBagPart.g.cs | 4 +++- ...Part_RdSupportingPropertyBagStructurePart.g.cs | 4 +++- ...Part_RibbonAndBackstageCustomizationsPart.g.cs | 4 +++- .../Part_RibbonExtensibilityPart.g.cs | 1 + .../Part_RichStylesPart.g.cs | 4 +++- .../Part_SharedStringTablePart.g.cs | 4 +++- .../Part_SingleCellTablePart.g.cs | 4 +++- .../Part_SlicerCachePart.g.cs | 4 +++- .../Part_SlicersPart.g.cs | 4 +++- .../Part_SlideCommentsPart.g.cs | 4 +++- .../Part_SlideLayoutPart.g.cs | 4 +++- .../Part_SlideMasterPart.g.cs | 4 +++- .../Part_SlidePart.g.cs | 4 +++- .../Part_SlideSyncDataPart.g.cs | 4 +++- .../Part_SpreadsheetDocument.g.cs | 1 + .../Part_SpreadsheetPrinterSettingsPart.g.cs | 1 + .../Part_StyleDefinitionsPart.g.cs | 1 + .../Part_StylesWithEffectsPart.g.cs | 1 + .../Part_TableDefinitionPart.g.cs | 4 +++- .../Part_TableStylesPart.g.cs | 4 +++- .../Part_ThemeOverridePart.g.cs | 4 +++- .../Part_ThemePart.g.cs | 4 +++- .../Part_ThumbnailPart.g.cs | 1 + .../Part_TimeLineCachePart.g.cs | 4 +++- .../Part_TimeLinePart.g.cs | 4 +++- .../Part_UserDefinedTagsPart.g.cs | 4 +++- .../Part_VbaDataPart.g.cs | 4 +++- .../Part_VbaProjectPart.g.cs | 1 + .../Part_ViewPropertiesPart.g.cs | 4 +++- .../Part_VmlDrawingPart.g.cs | 1 + .../Part_VolatileDependenciesPart.g.cs | 4 +++- .../Part_WebExTaskpanesPart.g.cs | 4 +++- .../Part_WebExtensionPart.g.cs | 4 +++- .../Part_WebSettingsPart.g.cs | 4 +++- .../Part_WordAttachedToolbarsPart.g.cs | 1 + .../Part_WordCommentsExtensiblePart.g.cs | 4 +++- .../Part_WordprocessingCommentsExPart.g.cs | 4 +++- .../Part_WordprocessingCommentsIdsPart.g.cs | 4 +++- .../Part_WordprocessingCommentsPart.g.cs | 4 +++- .../Part_WordprocessingDocument.g.cs | 1 + .../Part_WordprocessingPeoplePart.g.cs | 4 +++- .../Part_WordprocessingPrinterSettingsPart.g.cs | 1 + .../Part_WorkbookPart.g.cs | 4 +++- .../Part_WorkbookPersonPart.g.cs | 4 +++- .../Part_WorkbookRevisionHeaderPart.g.cs | 4 +++- .../Part_WorkbookRevisionLogPart.g.cs | 4 +++- .../Part_WorkbookStylesPart.g.cs | 4 +++- .../Part_WorkbookUserDataPart.g.cs | 4 +++- .../Part_WorksheetCommentsPart.g.cs | 4 +++- .../Part_WorksheetPart.g.cs | 4 +++- .../Part_WorksheetSortMapPart.g.cs | 4 +++- .../Part_WorksheetThreadedCommentsPart.g.cs | 4 +++- .../Part_XmlSignaturePart.g.cs | 1 + samples/Linq/SvgExample/StronglyTypedTools.cs | 15 +++++++++++++++ samples/common/ExampleUtilities.cs | 15 +++++++++++++-- samples/common/PowerPointUtils.cs | 12 +++++++++--- .../Packaging/WordprocessingDocument.cs | 3 ++- .../RandomParagraphIdGeneratorTests.cs | 2 +- .../OpenXmlPartRootXElementExtensionsTests.cs | 5 ++--- 135 files changed, 365 insertions(+), 107 deletions(-) diff --git a/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Parts/PartWriter.cs b/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Parts/PartWriter.cs index b56d33e9d..be063fb3e 100644 --- a/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Parts/PartWriter.cs +++ b/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Parts/PartWriter.cs @@ -22,6 +22,7 @@ public static class PartWriter "DocumentFormat.OpenXml.Framework", "System", "System.Collections.Generic", + "System.Diagnostics.CodeAnalysis", }; private static readonly BlockOptions _options = new() @@ -408,9 +409,10 @@ private static IEnumerable GetSchemaTypedParts(OpenXmlGeneratorServices se yield return new(ItemType.Property, api.Class, writer => { writer.WriteDocumentationComment("Gets or sets the root element of this part."); + writer.WriteLine("[DisallowNull]"); writer.Write("public "); writer.Write(apiName); - writer.Write(" "); + writer.Write("? "); writer.WriteLine(api.Class); using (writer.AddBlock(_options)) diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_AlternativeFormatImportPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_AlternativeFormatImportPart.g.cs index 141260eeb..0095e8d90 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_AlternativeFormatImportPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_AlternativeFormatImportPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CalculationChainPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CalculationChainPart.g.cs index 1ea0a16a6..4b95a0fe4 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CalculationChainPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CalculationChainPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal CalculationChainPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.CalculationChain CalculationChain + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.CalculationChain? CalculationChain { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CellMetadataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CellMetadataPart.g.cs index 136b3e628..08211bec4 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CellMetadataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CellMetadataPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -48,7 +49,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Metadata Metadata + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.Metadata? Metadata { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartColorStylePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartColorStylePart.g.cs index 115d197db..4f18bf0cd 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartColorStylePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartColorStylePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal ChartColorStylePart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.ColorStyle ColorStyle + [DisallowNull] + public DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.ColorStyle? ColorStyle { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartDrawingPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartDrawingPart.g.cs index 07f375fa8..1d35bbb06 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartDrawingPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartDrawingPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -69,7 +70,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Charts.UserShapes UserShapes + [DisallowNull] + public DocumentFormat.OpenXml.Drawing.Charts.UserShapes? UserShapes { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartPart.g.cs index cc66fa755..5b280f424 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -44,7 +45,8 @@ internal ChartPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Charts.ChartSpace ChartSpace + [DisallowNull] + public DocumentFormat.OpenXml.Drawing.Charts.ChartSpace? ChartSpace { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartStylePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartStylePart.g.cs index 8a1238747..49a049f6c 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartStylePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartStylePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal ChartStylePart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.ChartStyle ChartStyle + [DisallowNull] + public DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.ChartStyle? ChartStyle { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartsheetPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartsheetPart.g.cs index 77faf73f5..cddde3a99 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartsheetPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartsheetPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -33,7 +34,8 @@ internal ChartsheetPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Chartsheet Chartsheet + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.Chartsheet? Chartsheet { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CommentAuthorsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CommentAuthorsPart.g.cs index d28a0c2df..865031426 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CommentAuthorsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CommentAuthorsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal CommentAuthorsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.CommentAuthorList CommentAuthorList + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.CommentAuthorList? CommentAuthorList { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ConnectionsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ConnectionsPart.g.cs index 8738530c1..f3cb9b208 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ConnectionsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ConnectionsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal ConnectionsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Connections Connections + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.Connections? Connections { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ControlPropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ControlPropertiesPart.g.cs index 8ad8b22ea..d49c0e023 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ControlPropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ControlPropertiesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -35,7 +36,8 @@ internal ControlPropertiesPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2010.Excel.FormControlProperties FormControlProperties + [DisallowNull] + public DocumentFormat.OpenXml.Office2010.Excel.FormControlProperties? FormControlProperties { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CoreFilePropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CoreFilePropertiesPart.g.cs index fac03368d..049ac6266 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CoreFilePropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CoreFilePropertiesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomDataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomDataPart.g.cs index 2dd8c7c5e..dd3cf6d5a 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomDataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomDataPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomDataPropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomDataPropertiesPart.g.cs index bf6c6d59d..6f269cf35 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomDataPropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomDataPropertiesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -40,7 +41,8 @@ internal CustomDataPropertiesPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2010.Excel.DatastoreItem DatastoreItem + [DisallowNull] + public DocumentFormat.OpenXml.Office2010.Excel.DatastoreItem? DatastoreItem { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomFilePropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomFilePropertiesPart.g.cs index 5b7c83ff9..7506130ca 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomFilePropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomFilePropertiesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -50,7 +51,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.CustomProperties.Properties Properties + [DisallowNull] + public DocumentFormat.OpenXml.CustomProperties.Properties? Properties { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomPropertyPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomPropertyPart.g.cs index 166677cbb..d364f6c96 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomPropertyPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomPropertyPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlMappingsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlMappingsPart.g.cs index b3ab84669..65536de85 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlMappingsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlMappingsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -48,7 +49,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.MapInfo MapInfo + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.MapInfo? MapInfo { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlPart.g.cs index de416f631..de27a4929 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlPropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlPropertiesPart.g.cs index 6899b360b..4575143ca 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlPropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlPropertiesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -35,7 +36,8 @@ internal CustomXmlPropertiesPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.CustomXmlDataProperties.DataStoreItem DataStoreItem + [DisallowNull] + public DocumentFormat.OpenXml.CustomXmlDataProperties.DataStoreItem? DataStoreItem { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomizationPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomizationPart.g.cs index 46ab7dfaf..0ae41a2e8 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomizationPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomizationPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office.Word.TemplateCommandGroup TemplateCommandGroup + [DisallowNull] + public DocumentFormat.OpenXml.Office.Word.TemplateCommandGroup? TemplateCommandGroup { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramColorsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramColorsPart.g.cs index e9b6058f9..1f8a3d92f 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramColorsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramColorsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal DiagramColorsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Diagrams.ColorsDefinition ColorsDefinition + [DisallowNull] + public DocumentFormat.OpenXml.Drawing.Diagrams.ColorsDefinition? ColorsDefinition { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramDataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramDataPart.g.cs index fb2e183b8..4ef14bcfb 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramDataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramDataPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -36,7 +37,8 @@ internal DiagramDataPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Diagrams.DataModelRoot DataModelRoot + [DisallowNull] + public DocumentFormat.OpenXml.Drawing.Diagrams.DataModelRoot? DataModelRoot { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramLayoutDefinitionPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramLayoutDefinitionPart.g.cs index c9488e231..8d261f756 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramLayoutDefinitionPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramLayoutDefinitionPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -54,7 +55,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Diagrams.LayoutDefinition LayoutDefinition + [DisallowNull] + public DocumentFormat.OpenXml.Drawing.Diagrams.LayoutDefinition? LayoutDefinition { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramPersistLayoutPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramPersistLayoutPart.g.cs index af60e262e..b71c6efa5 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramPersistLayoutPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramPersistLayoutPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -36,7 +37,8 @@ internal DiagramPersistLayoutPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office.Drawing.Drawing Drawing + [DisallowNull] + public DocumentFormat.OpenXml.Office.Drawing.Drawing? Drawing { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramStylePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramStylePart.g.cs index a3f98e429..53e671e3d 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramStylePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramStylePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Diagrams.StyleDefinition StyleDefinition + [DisallowNull] + public DocumentFormat.OpenXml.Drawing.Diagrams.StyleDefinition? StyleDefinition { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DialogsheetPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DialogsheetPart.g.cs index 48d9ecc74..64fb5c23d 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DialogsheetPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DialogsheetPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -36,7 +37,8 @@ internal DialogsheetPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.DialogSheet DialogSheet + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.DialogSheet? DialogSheet { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DigitalSignatureOriginPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DigitalSignatureOriginPart.g.cs index f8527181a..b19202dcb 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DigitalSignatureOriginPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DigitalSignatureOriginPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentSettingsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentSettingsPart.g.cs index dd38ce632..04fcb7e85 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentSettingsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentSettingsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -65,7 +66,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Settings Settings + [DisallowNull] + public DocumentFormat.OpenXml.Wordprocessing.Settings? Settings { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentTasksPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentTasksPart.g.cs index db97e4b31..69e5770f4 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentTasksPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentTasksPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.DocumentTasks.Tasks Tasks + [DisallowNull] + public DocumentFormat.OpenXml.Office2021.DocumentTasks.Tasks? Tasks { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DrawingsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DrawingsPart.g.cs index c0874de02..119092f7e 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DrawingsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DrawingsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -105,7 +106,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Spreadsheet.WorksheetDrawing WorksheetDrawing + [DisallowNull] + public DocumentFormat.OpenXml.Drawing.Spreadsheet.WorksheetDrawing? WorksheetDrawing { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedControlPersistenceBinaryDataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedControlPersistenceBinaryDataPart.g.cs index 36ba4b7ad..b6726f41a 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedControlPersistenceBinaryDataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedControlPersistenceBinaryDataPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedControlPersistencePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedControlPersistencePart.g.cs index 8c7dc0af1..58203749f 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedControlPersistencePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedControlPersistencePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedObjectPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedObjectPart.g.cs index 68dc0a3bf..128f45558 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedObjectPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedObjectPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedPackagePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedPackagePart.g.cs index cca0265c5..552b9b4e1 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedPackagePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EmbeddedPackagePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EndnotesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EndnotesPart.g.cs index a98c92725..b45031e62 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EndnotesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EndnotesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -90,7 +91,8 @@ internal EndnotesPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Endnotes Endnotes + [DisallowNull] + public DocumentFormat.OpenXml.Wordprocessing.Endnotes? Endnotes { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExcelAttachedToolbarsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExcelAttachedToolbarsPart.g.cs index b2c15a53c..65e762865 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExcelAttachedToolbarsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExcelAttachedToolbarsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedChartPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedChartPart.g.cs index fc9c29c9c..dc7ebc516 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedChartPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedChartPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -44,7 +45,8 @@ internal ExtendedChartPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2016.Drawing.ChartDrawing.ChartSpace ChartSpace + [DisallowNull] + public DocumentFormat.OpenXml.Office2016.Drawing.ChartDrawing.ChartSpace? ChartSpace { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedFilePropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedFilePropertiesPart.g.cs index 76e0a1f75..d4b58ffdb 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedFilePropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedFilePropertiesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -50,7 +51,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.ExtendedProperties.Properties Properties + [DisallowNull] + public DocumentFormat.OpenXml.ExtendedProperties.Properties? Properties { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExternalWorkbookPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExternalWorkbookPart.g.cs index d96d321e5..0326e6ceb 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExternalWorkbookPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExternalWorkbookPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -35,7 +36,8 @@ internal ExternalWorkbookPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.ExternalLink ExternalLink + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.ExternalLink? ExternalLink { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FeaturePropertyBagsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FeaturePropertyBagsPart.g.cs index 8a58d3540..5a4c9ee8e 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FeaturePropertyBagsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FeaturePropertyBagsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -35,7 +36,8 @@ internal FeaturePropertyBagsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office.Y2022.FeaturePropertyBag.FeaturePropertyBags FeaturePropertyBags + [DisallowNull] + public DocumentFormat.OpenXml.Office.Y2022.FeaturePropertyBag.FeaturePropertyBags? FeaturePropertyBags { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FontPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FontPart.g.cs index 468726192..2e9e90740 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FontPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FontPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FontTablePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FontTablePart.g.cs index 229c81141..190b09245 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FontTablePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FontTablePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -41,7 +42,8 @@ internal FontTablePart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Fonts Fonts + [DisallowNull] + public DocumentFormat.OpenXml.Wordprocessing.Fonts? Fonts { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FooterPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FooterPart.g.cs index 69b7e4db0..2e5e3fe5e 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FooterPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FooterPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -95,7 +96,8 @@ internal FooterPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Footer Footer + [DisallowNull] + public DocumentFormat.OpenXml.Wordprocessing.Footer? Footer { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FootnotesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FootnotesPart.g.cs index 10204d92b..01d542051 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FootnotesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FootnotesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -95,7 +96,8 @@ internal FootnotesPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Footnotes Footnotes + [DisallowNull] + public DocumentFormat.OpenXml.Wordprocessing.Footnotes? Footnotes { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_GlossaryDocumentPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_GlossaryDocumentPart.g.cs index 637629e4d..71bb0c8a5 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_GlossaryDocumentPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_GlossaryDocumentPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -130,7 +131,8 @@ internal GlossaryDocumentPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.GlossaryDocument GlossaryDocument + [DisallowNull] + public DocumentFormat.OpenXml.Wordprocessing.GlossaryDocument? GlossaryDocument { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HandoutMasterPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HandoutMasterPart.g.cs index 24203353b..9d8f9d0de 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HandoutMasterPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HandoutMasterPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -95,7 +96,8 @@ internal HandoutMasterPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.HandoutMaster HandoutMaster + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.HandoutMaster? HandoutMaster { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HeaderPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HeaderPart.g.cs index 075c725ed..682428fa5 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HeaderPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HeaderPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -95,7 +96,8 @@ internal HeaderPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Header Header + [DisallowNull] + public DocumentFormat.OpenXml.Wordprocessing.Header? Header { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ImagePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ImagePart.g.cs index ad9b65973..6e8b2ea67 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ImagePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ImagePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_InternationalMacroSheetPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_InternationalMacroSheetPart.g.cs index db278ddf8..fc3bb832a 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_InternationalMacroSheetPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_InternationalMacroSheetPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LabelInfoPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LabelInfoPart.g.cs index 0a509d468..7a8c6db0f 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LabelInfoPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LabelInfoPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal LabelInfoPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.MipLabelMetaData.ClassificationLabelList ClassificationLabelList + [DisallowNull] + public DocumentFormat.OpenXml.Office2021.MipLabelMetaData.ClassificationLabelList? ClassificationLabelList { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LegacyDiagramTextInfoPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LegacyDiagramTextInfoPart.g.cs index 86265d751..704ac2bee 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LegacyDiagramTextInfoPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LegacyDiagramTextInfoPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LegacyDiagramTextPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LegacyDiagramTextPart.g.cs index dafdc0533..4bce2f139 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LegacyDiagramTextPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LegacyDiagramTextPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MacroSheetPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MacroSheetPart.g.cs index 62663b87d..8552eb435 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MacroSheetPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MacroSheetPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -77,7 +78,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office.Excel.Macrosheet Macrosheet + [DisallowNull] + public DocumentFormat.OpenXml.Office.Excel.Macrosheet? Macrosheet { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MailMergeRecipientDataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MailMergeRecipientDataPart.g.cs index 800bbd2d9..8587e364f 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MailMergeRecipientDataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MailMergeRecipientDataPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MainDocumentPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MainDocumentPart.g.cs index 8e2f53073..b7631accc 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MainDocumentPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MainDocumentPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -82,7 +83,8 @@ internal MainDocumentPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Document Document + [DisallowNull] + public DocumentFormat.OpenXml.Wordprocessing.Document? Document { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_Model3DReferenceRelationshipPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_Model3DReferenceRelationshipPart.g.cs index 31c8da9bf..a0145517b 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_Model3DReferenceRelationshipPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_Model3DReferenceRelationshipPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NamedSheetViewsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NamedSheetViewsPart.g.cs index 29e26f1f8..6cc698803 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NamedSheetViewsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NamedSheetViewsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -48,7 +49,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.Excel.NamedSheetViews.NamedSheetViews NamedSheetViews + [DisallowNull] + public DocumentFormat.OpenXml.Office2021.Excel.NamedSheetViews.NamedSheetViews? NamedSheetViews { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesMasterPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesMasterPart.g.cs index 609012897..796399166 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesMasterPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesMasterPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -118,7 +119,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.NotesMaster NotesMaster + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.NotesMaster? NotesMaster { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesSlidePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesSlidePart.g.cs index b0a5d655e..db164d098 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesSlidePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesSlidePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -123,7 +124,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.NotesSlide NotesSlide + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.NotesSlide? NotesSlide { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NumberingDefinitionsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NumberingDefinitionsPart.g.cs index 781e55792..00f4b70ae 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NumberingDefinitionsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NumberingDefinitionsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -54,7 +55,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Numbering Numbering + [DisallowNull] + public DocumentFormat.OpenXml.Wordprocessing.Numbering? Numbering { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheDefinitionPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheDefinitionPart.g.cs index 45ef6f2b8..177c028c0 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheDefinitionPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheDefinitionPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -50,7 +51,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.PivotCacheDefinition PivotCacheDefinition + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.PivotCacheDefinition? PivotCacheDefinition { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheRecordsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheRecordsPart.g.cs index 90e0d76a2..fc7d837a9 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheRecordsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheRecordsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -50,7 +51,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.PivotCacheRecords PivotCacheRecords + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.PivotCacheRecords? PivotCacheRecords { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTablePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTablePart.g.cs index f49774fa3..62c279489 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTablePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTablePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -55,7 +56,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.PivotTableDefinition PivotTableDefinition + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.PivotTableDefinition? PivotTableDefinition { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointAuthorsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointAuthorsPart.g.cs index e58c1d469..5c6d7f211 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointAuthorsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointAuthorsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal PowerPointAuthorsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.PowerPoint.Comment.AuthorList AuthorList + [DisallowNull] + public DocumentFormat.OpenXml.Office2021.PowerPoint.Comment.AuthorList? AuthorList { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointCommentPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointCommentPart.g.cs index 3a73683b8..937bf0ce0 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointCommentPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointCommentPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal PowerPointCommentPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.PowerPoint.Comment.CommentList CommentList + [DisallowNull] + public DocumentFormat.OpenXml.Office2021.PowerPoint.Comment.CommentList? CommentList { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationDocument.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationDocument.g.cs index d4520f5fd..36cef8fea 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationDocument.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationDocument.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPart.g.cs index 7261b428a..a7bab3b3e 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -87,7 +88,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.Presentation Presentation + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.Presentation? Presentation { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPropertiesPart.g.cs index d6dc23d2f..6b6d15e7f 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPropertiesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -50,7 +51,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.PresentationProperties PresentationProperties + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.PresentationProperties? PresentationProperties { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_QueryTablePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_QueryTablePart.g.cs index 7f64855d2..830f202bd 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_QueryTablePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_QueryTablePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -50,7 +51,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.QueryTable QueryTable + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.QueryTable? QueryTable { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_QuickAccessToolbarCustomizationsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_QuickAccessToolbarCustomizationsPart.g.cs index 8253bffc7..da0cb700a 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_QuickAccessToolbarCustomizationsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_QuickAccessToolbarCustomizationsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdArrayPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdArrayPart.g.cs index d5c8559cc..ea1e5f347 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdArrayPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdArrayPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal RdArrayPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData2.ArrayData ArrayData + [DisallowNull] + public DocumentFormat.OpenXml.Office2019.Excel.RichData2.ArrayData? ArrayData { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValuePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValuePart.g.cs index a03055656..d0c182049 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValuePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValuePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData.RichValueData RichValueData + [DisallowNull] + public DocumentFormat.OpenXml.Office2019.Excel.RichData.RichValueData? RichValueData { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueStructurePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueStructurePart.g.cs index eaf38254d..d1e7f3c5f 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueStructurePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueStructurePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData.RichValueStructures RichValueStructures + [DisallowNull] + public DocumentFormat.OpenXml.Office2019.Excel.RichData.RichValueStructures? RichValueStructures { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueTypesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueTypesPart.g.cs index be188e623..9c4fe615d 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueTypesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueTypesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichValueTypesInfo RichValueTypesInfo + [DisallowNull] + public DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichValueTypesInfo? RichValueTypesInfo { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueWebImagePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueWebImagePart.g.cs index 7322eb684..fa13fbe69 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueWebImagePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueWebImagePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.Excel.RichDataWebImage.WebImagesSupportingRichData WebImagesSupportingRichData + [DisallowNull] + public DocumentFormat.OpenXml.Office2021.Excel.RichDataWebImage.WebImagesSupportingRichData? WebImagesSupportingRichData { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagPart.g.cs index 3d90612c0..b8b53df90 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData2.SupportingPropertyBags SupportingPropertyBags + [DisallowNull] + public DocumentFormat.OpenXml.Office2019.Excel.RichData2.SupportingPropertyBags? SupportingPropertyBags { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagStructurePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagStructurePart.g.cs index c2e8b7d74..9617e9472 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagStructurePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagStructurePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData2.SupportingPropertyBagStructures SupportingPropertyBagStructures + [DisallowNull] + public DocumentFormat.OpenXml.Office2019.Excel.RichData2.SupportingPropertyBagStructures? SupportingPropertyBagStructures { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RibbonAndBackstageCustomizationsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RibbonAndBackstageCustomizationsPart.g.cs index cedb0da35..164f4184c 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RibbonAndBackstageCustomizationsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RibbonAndBackstageCustomizationsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -36,7 +37,8 @@ internal RibbonAndBackstageCustomizationsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2010.CustomUI.CustomUI CustomUI + [DisallowNull] + public DocumentFormat.OpenXml.Office2010.CustomUI.CustomUI? CustomUI { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RibbonExtensibilityPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RibbonExtensibilityPart.g.cs index 5ceb01fe4..65992df90 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RibbonExtensibilityPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RibbonExtensibilityPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RichStylesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RichStylesPart.g.cs index 44a613d6a..4e2063bf0 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RichStylesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RichStylesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichStylesheet RichStylesheet + [DisallowNull] + public DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichStylesheet? RichStylesheet { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SharedStringTablePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SharedStringTablePart.g.cs index c71d9412c..5b6b6089c 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SharedStringTablePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SharedStringTablePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.SharedStringTable SharedStringTable + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.SharedStringTable? SharedStringTable { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SingleCellTablePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SingleCellTablePart.g.cs index 2a165be8f..5c48dc459 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SingleCellTablePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SingleCellTablePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.SingleXmlCells SingleXmlCells + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.SingleXmlCells? SingleXmlCells { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicerCachePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicerCachePart.g.cs index 99e6c17e0..aeb647946 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicerCachePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicerCachePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2010.Excel.SlicerCacheDefinition SlicerCacheDefinition + [DisallowNull] + public DocumentFormat.OpenXml.Office2010.Excel.SlicerCacheDefinition? SlicerCacheDefinition { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicersPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicersPart.g.cs index c53576240..627feb847 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicersPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicersPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2010.Excel.Slicers Slicers + [DisallowNull] + public DocumentFormat.OpenXml.Office2010.Excel.Slicers? Slicers { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideCommentsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideCommentsPart.g.cs index e41443da7..d1ca813b1 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideCommentsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideCommentsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal SlideCommentsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.CommentList CommentList + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.CommentList? CommentList { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideLayoutPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideLayoutPart.g.cs index c9846fbc5..199f77c70 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideLayoutPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideLayoutPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -129,7 +130,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.SlideLayout SlideLayout + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.SlideLayout? SlideLayout { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideMasterPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideMasterPart.g.cs index 8a96abb59..d65bd9d34 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideMasterPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideMasterPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -134,7 +135,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.SlideMaster SlideMaster + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.SlideMaster? SlideMaster { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlidePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlidePart.g.cs index 7fe854cd6..ef218b26e 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlidePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlidePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -139,7 +140,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.Slide Slide + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.Slide? Slide { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideSyncDataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideSyncDataPart.g.cs index d2851e7cf..c8181a86c 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideSyncDataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideSyncDataPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.SlideSyncProperties SlideSyncProperties + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.SlideSyncProperties? SlideSyncProperties { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SpreadsheetDocument.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SpreadsheetDocument.g.cs index ccba5f1fc..d896552de 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SpreadsheetDocument.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SpreadsheetDocument.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SpreadsheetPrinterSettingsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SpreadsheetPrinterSettingsPart.g.cs index a6bbb5781..c9f62699f 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SpreadsheetPrinterSettingsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SpreadsheetPrinterSettingsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_StyleDefinitionsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_StyleDefinitionsPart.g.cs index b2119601b..d9be88748 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_StyleDefinitionsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_StyleDefinitionsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_StylesWithEffectsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_StylesWithEffectsPart.g.cs index d1fabf93e..057a759a2 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_StylesWithEffectsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_StylesWithEffectsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableDefinitionPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableDefinitionPart.g.cs index 9854f09c7..697631bf1 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableDefinitionPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableDefinitionPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -58,7 +59,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Table Table + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.Table? Table { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableStylesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableStylesPart.g.cs index 744dfcfce..6de1a5c85 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableStylesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableStylesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.TableStyleList TableStyleList + [DisallowNull] + public DocumentFormat.OpenXml.Drawing.TableStyleList? TableStyleList { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemeOverridePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemeOverridePart.g.cs index 9011b8a29..28bc8c84b 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemeOverridePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemeOverridePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -59,7 +60,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.ThemeOverride ThemeOverride + [DisallowNull] + public DocumentFormat.OpenXml.Drawing.ThemeOverride? ThemeOverride { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemePart.g.cs index e03c8fcea..313ad60dd 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -59,7 +60,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Theme Theme + [DisallowNull] + public DocumentFormat.OpenXml.Drawing.Theme? Theme { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThumbnailPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThumbnailPart.g.cs index 2a84f7574..a8877cb30 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThumbnailPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThumbnailPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLineCachePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLineCachePart.g.cs index 8abe14369..5898b2dad 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLineCachePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLineCachePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.Excel.TimelineCacheDefinition TimelineCacheDefinition + [DisallowNull] + public DocumentFormat.OpenXml.Office2013.Excel.TimelineCacheDefinition? TimelineCacheDefinition { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLinePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLinePart.g.cs index 793a52355..9347fee16 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLinePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLinePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.Excel.Timelines Timelines + [DisallowNull] + public DocumentFormat.OpenXml.Office2013.Excel.Timelines? Timelines { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_UserDefinedTagsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_UserDefinedTagsPart.g.cs index 1fd92059f..74160ccae 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_UserDefinedTagsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_UserDefinedTagsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.TagList TagList + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.TagList? TagList { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VbaDataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VbaDataPart.g.cs index 87a61e616..602c84033 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VbaDataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VbaDataPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office.Word.VbaSuppData VbaSuppData + [DisallowNull] + public DocumentFormat.OpenXml.Office.Word.VbaSuppData? VbaSuppData { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VbaProjectPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VbaProjectPart.g.cs index 0558c4fd2..e1e185f5d 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VbaProjectPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VbaProjectPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ViewPropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ViewPropertiesPart.g.cs index 805bf6938..cdd6240b7 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ViewPropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ViewPropertiesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -58,7 +59,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.ViewProperties ViewProperties + [DisallowNull] + public DocumentFormat.OpenXml.Presentation.ViewProperties? ViewProperties { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VmlDrawingPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VmlDrawingPart.g.cs index 564c2a664..b559d34f2 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VmlDrawingPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VmlDrawingPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VolatileDependenciesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VolatileDependenciesPart.g.cs index 871228594..d018e298f 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VolatileDependenciesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VolatileDependenciesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.VolatileTypes VolatileTypes + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.VolatileTypes? VolatileTypes { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExTaskpanesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExTaskpanesPart.g.cs index 86c4db2ca..72ce92d3c 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExTaskpanesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExTaskpanesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.WebExtentionPane.Taskpanes Taskpanes + [DisallowNull] + public DocumentFormat.OpenXml.Office2013.WebExtentionPane.Taskpanes? Taskpanes { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExtensionPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExtensionPart.g.cs index 76b4991bb..6be6c7228 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExtensionPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExtensionPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -59,7 +60,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.WebExtension.WebExtension WebExtension + [DisallowNull] + public DocumentFormat.OpenXml.Office2013.WebExtension.WebExtension? WebExtension { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebSettingsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebSettingsPart.g.cs index 4c62e9c37..d97e35048 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebSettingsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebSettingsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.WebSettings WebSettings + [DisallowNull] + public DocumentFormat.OpenXml.Wordprocessing.WebSettings? WebSettings { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordAttachedToolbarsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordAttachedToolbarsPart.g.cs index 9e9f8b420..1843098f4 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordAttachedToolbarsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordAttachedToolbarsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordCommentsExtensiblePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordCommentsExtensiblePart.g.cs index ce2ea072a..78f55d6d1 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordCommentsExtensiblePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordCommentsExtensiblePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal WordCommentsExtensiblePart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.Word.CommentsExt.CommentsExtensible CommentsExtensible + [DisallowNull] + public DocumentFormat.OpenXml.Office2021.Word.CommentsExt.CommentsExtensible? CommentsExtensible { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsExPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsExPart.g.cs index f69de1c36..91879c66f 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsExPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsExPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -47,7 +48,8 @@ internal WordprocessingCommentsExPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.Word.CommentsEx CommentsEx + [DisallowNull] + public DocumentFormat.OpenXml.Office2013.Word.CommentsEx? CommentsEx { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsIdsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsIdsPart.g.cs index 7e0ce98c3..4c070c33c 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsIdsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsIdsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -47,7 +48,8 @@ internal WordprocessingCommentsIdsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Word.Cid.CommentsIds CommentsIds + [DisallowNull] + public DocumentFormat.OpenXml.Office2019.Word.Cid.CommentsIds? CommentsIds { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsPart.g.cs index 4d1756a7c..06ef4e93d 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -47,7 +48,8 @@ internal WordprocessingCommentsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Comments Comments + [DisallowNull] + public DocumentFormat.OpenXml.Wordprocessing.Comments? Comments { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingDocument.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingDocument.g.cs index 6deb4e572..9545d0599 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingDocument.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingDocument.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingPeoplePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingPeoplePart.g.cs index 5fee10f50..405f4c0c6 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingPeoplePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingPeoplePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -50,7 +51,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.Word.People People + [DisallowNull] + public DocumentFormat.OpenXml.Office2013.Word.People? People { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingPrinterSettingsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingPrinterSettingsPart.g.cs index f83832b77..9ae68511e 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingPrinterSettingsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingPrinterSettingsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPart.g.cs index 910fa251f..22afe10c3 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -195,7 +196,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Workbook Workbook + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.Workbook? Workbook { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPersonPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPersonPart.g.cs index 29f97e164..aaf82c936 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPersonPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPersonPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -50,7 +51,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.PersonList PersonList + [DisallowNull] + public DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.PersonList? PersonList { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionHeaderPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionHeaderPart.g.cs index 5500b3c6e..ade57a4d7 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionHeaderPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionHeaderPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -35,7 +36,8 @@ internal WorkbookRevisionHeaderPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Headers Headers + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.Headers? Headers { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionLogPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionLogPart.g.cs index 78c72b2d6..deb96ae08 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionLogPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionLogPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Revisions Revisions + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.Revisions? Revisions { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookStylesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookStylesPart.g.cs index aa6477f59..1d198a84d 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookStylesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookStylesPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Stylesheet Stylesheet + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.Stylesheet? Stylesheet { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookUserDataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookUserDataPart.g.cs index 1a2a5f24f..2f4d53bc0 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookUserDataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookUserDataPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Users Users + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.Users? Users { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetCommentsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetCommentsPart.g.cs index 1d2cd71b6..0feecaf94 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetCommentsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetCommentsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -32,7 +33,8 @@ internal WorksheetCommentsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Comments Comments + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.Comments? Comments { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetPart.g.cs index 6072dabb6..b4d5f833c 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -149,7 +150,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Worksheet Worksheet + [DisallowNull] + public DocumentFormat.OpenXml.Spreadsheet.Worksheet? Worksheet { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetSortMapPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetSortMapPart.g.cs index ddf2ef291..3354331bf 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetSortMapPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetSortMapPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office.Excel.WorksheetSortMap WorksheetSortMap + [DisallowNull] + public DocumentFormat.OpenXml.Office.Excel.WorksheetSortMap? WorksheetSortMap { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetThreadedCommentsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetThreadedCommentsPart.g.cs index 7e56fc842..6befe743c 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetThreadedCommentsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetThreadedCommentsPart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { @@ -53,7 +54,8 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedComments ThreadedComments + [DisallowNull] + public DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedComments? ThreadedComments { get { diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_XmlSignaturePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_XmlSignaturePart.g.cs index d0418717f..4d51891ba 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_XmlSignaturePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_XmlSignaturePart.g.cs @@ -9,6 +9,7 @@ using DocumentFormat.OpenXml.Framework; using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; namespace DocumentFormat.OpenXml.Packaging { diff --git a/samples/Linq/SvgExample/StronglyTypedTools.cs b/samples/Linq/SvgExample/StronglyTypedTools.cs index 36678baab..fad18f2e4 100644 --- a/samples/Linq/SvgExample/StronglyTypedTools.cs +++ b/samples/Linq/SvgExample/StronglyTypedTools.cs @@ -22,6 +22,11 @@ public static void AddSvg(Stream stream, string svgPath, double percentageOfCy) PresentationPart presentationPart = presentationDocument.PresentationPart ?? throw new InvalidOperationException(@"PresentationDocument is invalid."); + if (presentationPart.Presentation is null) + { + throw new ArgumentNullException(@"Presentation root element is missing!"); + } + // Get relationship ID of first slide. string sldRelId = presentationPart .Presentation @@ -88,6 +93,11 @@ public static void AddSvg(Stream stream, string svgPath, double percentageOfCy) new Drawing.FillRectangle())), GetShapeProperties(presentationPart, percentageOfCy)); + if (slidePart.Slide is null) + { + throw new ArgumentNullException(@"Slide root element is missing!"); + } + Presentation.ShapeTree shapeTree = slidePart .Slide .CommonSlideData? @@ -108,6 +118,11 @@ public static TOpenXmlElement WithNamespaceDeclaration( private static Presentation.ShapeProperties GetShapeProperties(PresentationPart part, double percentageOfCy) { + if (part.Presentation is null) + { + throw new ArgumentNullException(@"Presentation root element is missing!"); + } + Presentation.SlideSize slideSize = part.Presentation.SlideSize!; var slideCx = (int)slideSize.Cx!; var slideCy = (int)slideSize.Cy!; diff --git a/samples/common/ExampleUtilities.cs b/samples/common/ExampleUtilities.cs index b899ca15c..08aa43df7 100644 --- a/samples/common/ExampleUtilities.cs +++ b/samples/common/ExampleUtilities.cs @@ -1,5 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. + #nullable enable using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Packaging; @@ -53,7 +54,7 @@ public static bool CheckIfFilesExist(string[] files) worksheetPart.Worksheet = new Worksheet(new SheetData()); // Add Sheets to the Workbook. - Sheets? sheets = spreadsheetDocument?.WorkbookPart?.Workbook.AppendChild(new Sheets()); + Sheets? sheets = spreadsheetDocument?.WorkbookPart?.Workbook!.AppendChild(new Sheets()); // Append a new worksheet and associate it with the workbook. Sheet sheet = new() @@ -127,7 +128,7 @@ public static void InsertText(SpreadsheetDocument sd, string sheetName, string t cell.DataType = new EnumValue(CellValues.SharedString); // Save the new worksheet. - worksheetPart.Worksheet.Save(); + worksheetPart.Worksheet?.Save(); } } } @@ -151,6 +152,11 @@ public static WorksheetPart GetSheet(SpreadsheetDocument sd, string sheetName) workbookPart = sd.WorkbookPart; } + if (workbookPart.Workbook is null) + { + throw new ArgumentNullException("Workbook root element is missing!"); + } + IEnumerable? sheets = workbookPart.Workbook.GetFirstChild()?.Elements().Where(s => s.Name == sheetName); if (sheets is null || sheets.Count() == 0) @@ -207,6 +213,11 @@ private static int InsertSharedStringItem(string text, SharedStringTablePart? sh private static Cell InsertCellInWorksheet(string columnName, uint rowIndex, WorksheetPart worksheetPart) { + if (worksheetPart.Worksheet is null) + { + throw new ArgumentNullException("Worksheet root element is missing!"); + } + Worksheet worksheet = worksheetPart.Worksheet; SheetData? sheetData = worksheet.GetFirstChild(); diff --git a/samples/common/PowerPointUtils.cs b/samples/common/PowerPointUtils.cs index 824598ef3..36ec0275e 100644 --- a/samples/common/PowerPointUtils.cs +++ b/samples/common/PowerPointUtils.cs @@ -5,6 +5,7 @@ using DocumentFormat.OpenXml.Drawing; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Presentation; +using System; using D = DocumentFormat.OpenXml.Drawing; using P = DocumentFormat.OpenXml.Presentation; @@ -42,6 +43,11 @@ private static void CreatePresentationParts(PresentationPart presentationPart) NotesSize notesSize1 = new NotesSize() { Cx = 6858000, Cy = 9144000 }; DefaultTextStyle defaultTextStyle1 = new DefaultTextStyle(); + if (presentationPart.Presentation is null) + { + throw new ArgumentNullException("Presentation root element is missing!"); + } + presentationPart.Presentation.Append(slideMasterIdList1, slideIdList1, slideSize1, notesSize1, defaultTextStyle1); SlidePart slidePart1; @@ -166,7 +172,7 @@ private static ThemePart CreateTheme(SlideMasterPart slideMasterPart1) new D.LatinFont() { Typeface = "Calibri" }, new D.EastAsianFont() { Typeface = string.Empty }, new D.ComplexScriptFont() { Typeface = string.Empty })) - { Name = "Office" }, + { Name = "Office" }, new D.FormatScheme( new D.FillStyleList( new D.SolidFill(new D.SchemeColor() { Val = D.SchemeColorValues.PhColor }), @@ -282,7 +288,7 @@ private static ThemePart CreateTheme(SlideMasterPart slideMasterPart1) new D.SchemeColor( new D.Tint() { Val = 50000 }, new D.SaturationModulation() { Val = 300000 }) - { Val = D.SchemeColorValues.PhColor }) + { Val = D.SchemeColorValues.PhColor }) { Position = 0 }, new D.GradientStop( new D.SchemeColor( @@ -291,7 +297,7 @@ private static ThemePart CreateTheme(SlideMasterPart slideMasterPart1) { Val = D.SchemeColorValues.PhColor }) { Position = 0 }), new D.LinearGradientFill() { Angle = 16200000, Scaled = true }))) - { Name = "Office" }); + { Name = "Office" }); theme1.Append(themeElements1); theme1.Append(new D.ObjectDefaults()); diff --git a/src/DocumentFormat.OpenXml/Packaging/WordprocessingDocument.cs b/src/DocumentFormat.OpenXml/Packaging/WordprocessingDocument.cs index 85a1e7488..b3bd6384d 100644 --- a/src/DocumentFormat.OpenXml/Packaging/WordprocessingDocument.cs +++ b/src/DocumentFormat.OpenXml/Packaging/WordprocessingDocument.cs @@ -219,7 +219,8 @@ public static WordprocessingDocument CreateFromTemplate(string path, bool isTemp var relationship = documentSettingsPart.AddExternalRelationship( "http://schemas.openxmlformats.org/officeDocument/2006/relationships/attachedTemplate", new Uri(path, UriHelper.RelativeOrAbsolute)); - documentSettingsPart.Settings.AppendChild(new AttachedTemplate { Id = relationship.Id }); + + documentSettingsPart.Settings!.AppendChild(new AttachedTemplate { Id = relationship.Id }); } }; } diff --git a/test/DocumentFormat.OpenXml.Framework.Features.Tests/RandomParagraphIdGeneratorTests.cs b/test/DocumentFormat.OpenXml.Framework.Features.Tests/RandomParagraphIdGeneratorTests.cs index 7e1b65fab..977c209c1 100644 --- a/test/DocumentFormat.OpenXml.Framework.Features.Tests/RandomParagraphIdGeneratorTests.cs +++ b/test/DocumentFormat.OpenXml.Framework.Features.Tests/RandomParagraphIdGeneratorTests.cs @@ -44,7 +44,7 @@ private static int UpdateTestDocument(Stream stream, int start, int end) var paraIdCollection = wordDocument.Features.GetRequired(); MainDocumentPart part = wordDocument.MainDocumentPart!; - Body body = part.Document.Body!; + Body body = part.Document!.Body!; // The MainDocumentPart's DOM tree must have been loaded by accessing // the Document property before determining the number of w14:paraId diff --git a/test/DocumentFormat.OpenXml.Linq.Tests/OpenXmlPartRootXElementExtensionsTests.cs b/test/DocumentFormat.OpenXml.Linq.Tests/OpenXmlPartRootXElementExtensionsTests.cs index 2f2e64528..c73fafa7e 100644 --- a/test/DocumentFormat.OpenXml.Linq.Tests/OpenXmlPartRootXElementExtensionsTests.cs +++ b/test/DocumentFormat.OpenXml.Linq.Tests/OpenXmlPartRootXElementExtensionsTests.cs @@ -9,7 +9,6 @@ using System.Xml.Linq; using Xunit; -#nullable enable #pragma warning disable SA1116 // Split parameters should start on line after declaration namespace DocumentFormat.OpenXml.Linq.Tests @@ -240,7 +239,7 @@ public void SetXDocument_NewPartWithoutRootElement_RootXmlStringsAreIdentical() Assert.Equal(HelloWorldXmlString, rootElement!.OuterXml); // Note that the Document has the expected markup. - Document document = part.Document; + Document document = part.Document!; Assert.NotNull(document); Assert.Equal(HelloWorldXmlString, document.OuterXml); } @@ -287,7 +286,7 @@ public void SetXElement_NewPartWithoutRootElement_RootXmlStringsAreIdentical() Assert.Equal(HelloWorldXmlString, rootElement!.OuterXml); // Note that the Document has the expected markup. - Document document = part.Document; + Document document = part.Document!; Assert.NotNull(document); Assert.Equal(HelloWorldXmlString, document.OuterXml); } From 1b11370fb614c49504c6c15558f9f1ca0cccc042 Mon Sep 17 00:00:00 2001 From: Tom Jebo Date: Thu, 24 Apr 2025 18:47:58 -0700 Subject: [PATCH 2/6] update utility to check for null --- samples/common/ExampleUtilities.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/samples/common/ExampleUtilities.cs b/samples/common/ExampleUtilities.cs index 08aa43df7..c10b2d632 100644 --- a/samples/common/ExampleUtilities.cs +++ b/samples/common/ExampleUtilities.cs @@ -127,8 +127,13 @@ public static void InsertText(SpreadsheetDocument sd, string sheetName, string t cell.CellValue = new CellValue(index.ToString()); cell.DataType = new EnumValue(CellValues.SharedString); + if (worksheetPart.Worksheet == null) + { + throw new InvalidOperationException("Worksheet is null. Unable to save changes."); + } + // Save the new worksheet. - worksheetPart.Worksheet?.Save(); + worksheetPart.Worksheet!.Save(); } } } From 81ac063b9630842ce82c2a9a56d9240cf68e5d5a Mon Sep 17 00:00:00 2001 From: Tom Jebo Date: Fri, 25 Apr 2025 11:23:41 -0700 Subject: [PATCH 3/6] remove [DisallowNull] --- .../Generators/Parts/PartWriter.cs | 1 - .../Part_CalculationChainPart.g.cs | 1 - .../Part_CellMetadataPart.g.cs | 1 - .../Part_ChartColorStylePart.g.cs | 1 - .../Part_ChartDrawingPart.g.cs | 1 - .../Part_ChartPart.g.cs | 1 - .../Part_ChartStylePart.g.cs | 1 - .../Part_ChartsheetPart.g.cs | 1 - .../Part_CommentAuthorsPart.g.cs | 1 - .../Part_ConnectionsPart.g.cs | 1 - .../Part_ControlPropertiesPart.g.cs | 1 - .../Part_CustomDataPropertiesPart.g.cs | 1 - .../Part_CustomFilePropertiesPart.g.cs | 1 - .../Part_CustomXmlMappingsPart.g.cs | 1 - .../Part_CustomXmlPropertiesPart.g.cs | 1 - .../Part_CustomizationPart.g.cs | 1 - .../Part_DiagramColorsPart.g.cs | 1 - .../Part_DiagramDataPart.g.cs | 1 - .../Part_DiagramLayoutDefinitionPart.g.cs | 1 - .../Part_DiagramPersistLayoutPart.g.cs | 1 - .../Part_DiagramStylePart.g.cs | 1 - .../Part_DialogsheetPart.g.cs | 1 - .../Part_DocumentSettingsPart.g.cs | 1 - .../Part_DocumentTasksPart.g.cs | 1 - .../Part_DrawingsPart.g.cs | 1 - .../Part_EndnotesPart.g.cs | 1 - .../Part_ExtendedChartPart.g.cs | 1 - .../Part_ExtendedFilePropertiesPart.g.cs | 1 - .../Part_ExternalWorkbookPart.g.cs | 1 - .../Part_FeaturePropertyBagsPart.g.cs | 1 - .../Part_FontTablePart.g.cs | 1 - .../Part_FooterPart.g.cs | 1 - .../Part_FootnotesPart.g.cs | 1 - .../Part_GlossaryDocumentPart.g.cs | 1 - .../Part_HandoutMasterPart.g.cs | 1 - .../Part_HeaderPart.g.cs | 1 - .../Part_LabelInfoPart.g.cs | 1 - .../Part_MacroSheetPart.g.cs | 1 - .../Part_MainDocumentPart.g.cs | 1 - .../Part_NamedSheetViewsPart.g.cs | 1 - .../Part_NotesMasterPart.g.cs | 1 - .../Part_NotesSlidePart.g.cs | 1 - .../Part_NumberingDefinitionsPart.g.cs | 1 - .../Part_PivotTableCacheDefinitionPart.g.cs | 1 - .../Part_PivotTableCacheRecordsPart.g.cs | 1 - .../Part_PivotTablePart.g.cs | 1 - .../Part_PowerPointAuthorsPart.g.cs | 1 - .../Part_PowerPointCommentPart.g.cs | 1 - .../Part_PresentationPart.g.cs | 1 - .../Part_PresentationPropertiesPart.g.cs | 1 - .../Part_QueryTablePart.g.cs | 1 - .../Part_RdArrayPart.g.cs | 1 - .../Part_RdRichValuePart.g.cs | 1 - .../Part_RdRichValueStructurePart.g.cs | 1 - .../Part_RdRichValueTypesPart.g.cs | 1 - .../Part_RdRichValueWebImagePart.g.cs | 1 - .../Part_RdSupportingPropertyBagPart.g.cs | 1 - .../Part_RdSupportingPropertyBagStructurePart.g.cs | 1 - .../Part_RibbonAndBackstageCustomizationsPart.g.cs | 1 - .../Part_RichStylesPart.g.cs | 1 - .../Part_SharedStringTablePart.g.cs | 1 - .../Part_SingleCellTablePart.g.cs | 1 - .../Part_SlicerCachePart.g.cs | 1 - .../Part_SlicersPart.g.cs | 1 - .../Part_SlideCommentsPart.g.cs | 1 - .../Part_SlideLayoutPart.g.cs | 1 - .../Part_SlideMasterPart.g.cs | 1 - .../Part_SlidePart.g.cs | 1 - .../Part_SlideSyncDataPart.g.cs | 1 - .../Part_TableDefinitionPart.g.cs | 1 - .../Part_TableStylesPart.g.cs | 1 - .../Part_ThemeOverridePart.g.cs | 1 - .../Part_ThemePart.g.cs | 1 - .../Part_TimeLineCachePart.g.cs | 1 - .../Part_TimeLinePart.g.cs | 1 - .../Part_UserDefinedTagsPart.g.cs | 1 - .../Part_VbaDataPart.g.cs | 1 - .../Part_ViewPropertiesPart.g.cs | 1 - .../Part_VolatileDependenciesPart.g.cs | 1 - .../Part_WebExTaskpanesPart.g.cs | 1 - .../Part_WebExtensionPart.g.cs | 1 - .../Part_WebSettingsPart.g.cs | 1 - .../Part_WordCommentsExtensiblePart.g.cs | 1 - .../Part_WordprocessingCommentsExPart.g.cs | 1 - .../Part_WordprocessingCommentsIdsPart.g.cs | 1 - .../Part_WordprocessingCommentsPart.g.cs | 1 - .../Part_WordprocessingPeoplePart.g.cs | 1 - .../Part_WorkbookPart.g.cs | 1 - .../Part_WorkbookPersonPart.g.cs | 1 - .../Part_WorkbookRevisionHeaderPart.g.cs | 1 - .../Part_WorkbookRevisionLogPart.g.cs | 1 - .../Part_WorkbookStylesPart.g.cs | 1 - .../Part_WorkbookUserDataPart.g.cs | 1 - .../Part_WorksheetCommentsPart.g.cs | 1 - .../Part_WorksheetPart.g.cs | 1 - .../Part_WorksheetSortMapPart.g.cs | 1 - .../Part_WorksheetThreadedCommentsPart.g.cs | 1 - samples/Linq/SvgExample/StronglyTypedTools.cs | 10 +++++----- 98 files changed, 5 insertions(+), 102 deletions(-) diff --git a/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Parts/PartWriter.cs b/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Parts/PartWriter.cs index be063fb3e..d9caba3cc 100644 --- a/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Parts/PartWriter.cs +++ b/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Parts/PartWriter.cs @@ -409,7 +409,6 @@ private static IEnumerable GetSchemaTypedParts(OpenXmlGeneratorServices se yield return new(ItemType.Property, api.Class, writer => { writer.WriteDocumentationComment("Gets or sets the root element of this part."); - writer.WriteLine("[DisallowNull]"); writer.Write("public "); writer.Write(apiName); writer.Write("? "); diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CalculationChainPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CalculationChainPart.g.cs index 4b95a0fe4..95115e2fc 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CalculationChainPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CalculationChainPart.g.cs @@ -33,7 +33,6 @@ internal CalculationChainPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.CalculationChain? CalculationChain { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CellMetadataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CellMetadataPart.g.cs index 08211bec4..015a64e60 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CellMetadataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CellMetadataPart.g.cs @@ -49,7 +49,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.Metadata? Metadata { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartColorStylePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartColorStylePart.g.cs index 4f18bf0cd..ee219913e 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartColorStylePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartColorStylePart.g.cs @@ -33,7 +33,6 @@ internal ChartColorStylePart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.ColorStyle? ColorStyle { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartDrawingPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartDrawingPart.g.cs index 1d35bbb06..efa6a8c26 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartDrawingPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartDrawingPart.g.cs @@ -70,7 +70,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Drawing.Charts.UserShapes? UserShapes { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartPart.g.cs index 5b280f424..20fe11498 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartPart.g.cs @@ -45,7 +45,6 @@ internal ChartPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Drawing.Charts.ChartSpace? ChartSpace { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartStylePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartStylePart.g.cs index 49a049f6c..701f9e795 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartStylePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartStylePart.g.cs @@ -33,7 +33,6 @@ internal ChartStylePart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.ChartStyle? ChartStyle { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartsheetPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartsheetPart.g.cs index cddde3a99..151314bc7 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartsheetPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartsheetPart.g.cs @@ -34,7 +34,6 @@ internal ChartsheetPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.Chartsheet? Chartsheet { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CommentAuthorsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CommentAuthorsPart.g.cs index 865031426..b1f30d1e0 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CommentAuthorsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CommentAuthorsPart.g.cs @@ -33,7 +33,6 @@ internal CommentAuthorsPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.CommentAuthorList? CommentAuthorList { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ConnectionsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ConnectionsPart.g.cs index f3cb9b208..43fecef9a 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ConnectionsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ConnectionsPart.g.cs @@ -33,7 +33,6 @@ internal ConnectionsPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.Connections? Connections { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ControlPropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ControlPropertiesPart.g.cs index d49c0e023..463591966 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ControlPropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ControlPropertiesPart.g.cs @@ -36,7 +36,6 @@ internal ControlPropertiesPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2010.Excel.FormControlProperties? FormControlProperties { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomDataPropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomDataPropertiesPart.g.cs index 6f269cf35..24b89b201 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomDataPropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomDataPropertiesPart.g.cs @@ -41,7 +41,6 @@ internal CustomDataPropertiesPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2010.Excel.DatastoreItem? DatastoreItem { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomFilePropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomFilePropertiesPart.g.cs index 7506130ca..bd698cca2 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomFilePropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomFilePropertiesPart.g.cs @@ -51,7 +51,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.CustomProperties.Properties? Properties { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlMappingsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlMappingsPart.g.cs index 65536de85..4b4c0ba26 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlMappingsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlMappingsPart.g.cs @@ -49,7 +49,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.MapInfo? MapInfo { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlPropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlPropertiesPart.g.cs index 4575143ca..d330c626e 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlPropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomXmlPropertiesPart.g.cs @@ -36,7 +36,6 @@ internal CustomXmlPropertiesPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.CustomXmlDataProperties.DataStoreItem? DataStoreItem { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomizationPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomizationPart.g.cs index 0ae41a2e8..cb7a0f7b2 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomizationPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CustomizationPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office.Word.TemplateCommandGroup? TemplateCommandGroup { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramColorsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramColorsPart.g.cs index 1f8a3d92f..ff0eec94b 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramColorsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramColorsPart.g.cs @@ -33,7 +33,6 @@ internal DiagramColorsPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Drawing.Diagrams.ColorsDefinition? ColorsDefinition { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramDataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramDataPart.g.cs index 4ef14bcfb..71d566213 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramDataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramDataPart.g.cs @@ -37,7 +37,6 @@ internal DiagramDataPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Drawing.Diagrams.DataModelRoot? DataModelRoot { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramLayoutDefinitionPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramLayoutDefinitionPart.g.cs index 8d261f756..d1fe6f145 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramLayoutDefinitionPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramLayoutDefinitionPart.g.cs @@ -55,7 +55,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Drawing.Diagrams.LayoutDefinition? LayoutDefinition { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramPersistLayoutPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramPersistLayoutPart.g.cs index b71c6efa5..40a532fce 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramPersistLayoutPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramPersistLayoutPart.g.cs @@ -37,7 +37,6 @@ internal DiagramPersistLayoutPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office.Drawing.Drawing? Drawing { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramStylePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramStylePart.g.cs index 53e671e3d..990f799d8 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramStylePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DiagramStylePart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Drawing.Diagrams.StyleDefinition? StyleDefinition { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DialogsheetPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DialogsheetPart.g.cs index 64fb5c23d..44366b8c0 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DialogsheetPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DialogsheetPart.g.cs @@ -37,7 +37,6 @@ internal DialogsheetPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.DialogSheet? DialogSheet { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentSettingsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentSettingsPart.g.cs index 04fcb7e85..1b6107b71 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentSettingsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentSettingsPart.g.cs @@ -66,7 +66,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Wordprocessing.Settings? Settings { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentTasksPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentTasksPart.g.cs index 69e5770f4..efbe7ad3d 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentTasksPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DocumentTasksPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2021.DocumentTasks.Tasks? Tasks { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DrawingsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DrawingsPart.g.cs index 119092f7e..f507fb664 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DrawingsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_DrawingsPart.g.cs @@ -106,7 +106,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Drawing.Spreadsheet.WorksheetDrawing? WorksheetDrawing { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EndnotesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EndnotesPart.g.cs index b45031e62..5d79c36a6 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EndnotesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_EndnotesPart.g.cs @@ -91,7 +91,6 @@ internal EndnotesPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Wordprocessing.Endnotes? Endnotes { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedChartPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedChartPart.g.cs index dc7ebc516..b53f54028 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedChartPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedChartPart.g.cs @@ -45,7 +45,6 @@ internal ExtendedChartPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2016.Drawing.ChartDrawing.ChartSpace? ChartSpace { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedFilePropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedFilePropertiesPart.g.cs index d4b58ffdb..ccf97eed3 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedFilePropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExtendedFilePropertiesPart.g.cs @@ -51,7 +51,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.ExtendedProperties.Properties? Properties { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExternalWorkbookPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExternalWorkbookPart.g.cs index 0326e6ceb..76da2423f 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExternalWorkbookPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ExternalWorkbookPart.g.cs @@ -36,7 +36,6 @@ internal ExternalWorkbookPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.ExternalLink? ExternalLink { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FeaturePropertyBagsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FeaturePropertyBagsPart.g.cs index 5a4c9ee8e..dd6610a39 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FeaturePropertyBagsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FeaturePropertyBagsPart.g.cs @@ -36,7 +36,6 @@ internal FeaturePropertyBagsPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office.Y2022.FeaturePropertyBag.FeaturePropertyBags? FeaturePropertyBags { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FontTablePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FontTablePart.g.cs index 190b09245..927e97bff 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FontTablePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FontTablePart.g.cs @@ -42,7 +42,6 @@ internal FontTablePart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Wordprocessing.Fonts? Fonts { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FooterPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FooterPart.g.cs index 2e5e3fe5e..3e156d08a 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FooterPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FooterPart.g.cs @@ -96,7 +96,6 @@ internal FooterPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Wordprocessing.Footer? Footer { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FootnotesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FootnotesPart.g.cs index 01d542051..7ee444de7 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FootnotesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_FootnotesPart.g.cs @@ -96,7 +96,6 @@ internal FootnotesPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Wordprocessing.Footnotes? Footnotes { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_GlossaryDocumentPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_GlossaryDocumentPart.g.cs index 71bb0c8a5..b28e01ca4 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_GlossaryDocumentPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_GlossaryDocumentPart.g.cs @@ -131,7 +131,6 @@ internal GlossaryDocumentPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Wordprocessing.GlossaryDocument? GlossaryDocument { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HandoutMasterPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HandoutMasterPart.g.cs index 9d8f9d0de..b8e418a4b 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HandoutMasterPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HandoutMasterPart.g.cs @@ -96,7 +96,6 @@ internal HandoutMasterPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.HandoutMaster? HandoutMaster { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HeaderPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HeaderPart.g.cs index 682428fa5..6db50cfb7 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HeaderPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_HeaderPart.g.cs @@ -96,7 +96,6 @@ internal HeaderPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Wordprocessing.Header? Header { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LabelInfoPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LabelInfoPart.g.cs index 7a8c6db0f..509f4e4df 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LabelInfoPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_LabelInfoPart.g.cs @@ -33,7 +33,6 @@ internal LabelInfoPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2021.MipLabelMetaData.ClassificationLabelList? ClassificationLabelList { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MacroSheetPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MacroSheetPart.g.cs index 8552eb435..1a195a47a 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MacroSheetPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MacroSheetPart.g.cs @@ -78,7 +78,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office.Excel.Macrosheet? Macrosheet { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MainDocumentPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MainDocumentPart.g.cs index b7631accc..460c3a651 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MainDocumentPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_MainDocumentPart.g.cs @@ -83,7 +83,6 @@ internal MainDocumentPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Wordprocessing.Document? Document { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NamedSheetViewsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NamedSheetViewsPart.g.cs index 6cc698803..018966d21 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NamedSheetViewsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NamedSheetViewsPart.g.cs @@ -49,7 +49,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2021.Excel.NamedSheetViews.NamedSheetViews? NamedSheetViews { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesMasterPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesMasterPart.g.cs index 796399166..a722462e7 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesMasterPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesMasterPart.g.cs @@ -119,7 +119,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.NotesMaster? NotesMaster { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesSlidePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesSlidePart.g.cs index db164d098..208aa7545 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesSlidePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NotesSlidePart.g.cs @@ -124,7 +124,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.NotesSlide? NotesSlide { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NumberingDefinitionsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NumberingDefinitionsPart.g.cs index 00f4b70ae..98ff0a7ff 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NumberingDefinitionsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_NumberingDefinitionsPart.g.cs @@ -55,7 +55,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Wordprocessing.Numbering? Numbering { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheDefinitionPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheDefinitionPart.g.cs index 177c028c0..3cdbd3364 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheDefinitionPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheDefinitionPart.g.cs @@ -51,7 +51,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.PivotCacheDefinition? PivotCacheDefinition { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheRecordsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheRecordsPart.g.cs index fc7d837a9..fdbbba056 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheRecordsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTableCacheRecordsPart.g.cs @@ -51,7 +51,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.PivotCacheRecords? PivotCacheRecords { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTablePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTablePart.g.cs index 62c279489..f7cf5bf66 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTablePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PivotTablePart.g.cs @@ -56,7 +56,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.PivotTableDefinition? PivotTableDefinition { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointAuthorsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointAuthorsPart.g.cs index 5c6d7f211..60d0b73a0 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointAuthorsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointAuthorsPart.g.cs @@ -33,7 +33,6 @@ internal PowerPointAuthorsPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2021.PowerPoint.Comment.AuthorList? AuthorList { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointCommentPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointCommentPart.g.cs index 937bf0ce0..c9f4d15d4 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointCommentPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PowerPointCommentPart.g.cs @@ -33,7 +33,6 @@ internal PowerPointCommentPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2021.PowerPoint.Comment.CommentList? CommentList { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPart.g.cs index a7bab3b3e..af39c3d5e 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPart.g.cs @@ -88,7 +88,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.Presentation? Presentation { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPropertiesPart.g.cs index 6b6d15e7f..e1988c977 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_PresentationPropertiesPart.g.cs @@ -51,7 +51,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.PresentationProperties? PresentationProperties { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_QueryTablePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_QueryTablePart.g.cs index 830f202bd..aca2affec 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_QueryTablePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_QueryTablePart.g.cs @@ -51,7 +51,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.QueryTable? QueryTable { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdArrayPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdArrayPart.g.cs index ea1e5f347..7ac723818 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdArrayPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdArrayPart.g.cs @@ -33,7 +33,6 @@ internal RdArrayPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2019.Excel.RichData2.ArrayData? ArrayData { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValuePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValuePart.g.cs index d0c182049..a6d411439 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValuePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValuePart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2019.Excel.RichData.RichValueData? RichValueData { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueStructurePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueStructurePart.g.cs index d1e7f3c5f..534117005 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueStructurePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueStructurePart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2019.Excel.RichData.RichValueStructures? RichValueStructures { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueTypesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueTypesPart.g.cs index 9c4fe615d..44c083571 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueTypesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueTypesPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichValueTypesInfo? RichValueTypesInfo { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueWebImagePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueWebImagePart.g.cs index fa13fbe69..8ffb72baf 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueWebImagePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdRichValueWebImagePart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2021.Excel.RichDataWebImage.WebImagesSupportingRichData? WebImagesSupportingRichData { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagPart.g.cs index b8b53df90..a33b61176 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2019.Excel.RichData2.SupportingPropertyBags? SupportingPropertyBags { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagStructurePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagStructurePart.g.cs index 9617e9472..97448646b 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagStructurePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RdSupportingPropertyBagStructurePart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2019.Excel.RichData2.SupportingPropertyBagStructures? SupportingPropertyBagStructures { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RibbonAndBackstageCustomizationsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RibbonAndBackstageCustomizationsPart.g.cs index 164f4184c..f233c1b7f 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RibbonAndBackstageCustomizationsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RibbonAndBackstageCustomizationsPart.g.cs @@ -37,7 +37,6 @@ internal RibbonAndBackstageCustomizationsPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2010.CustomUI.CustomUI? CustomUI { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RichStylesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RichStylesPart.g.cs index 4e2063bf0..7e0697c77 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RichStylesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_RichStylesPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichStylesheet? RichStylesheet { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SharedStringTablePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SharedStringTablePart.g.cs index 5b6b6089c..44f544962 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SharedStringTablePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SharedStringTablePart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.SharedStringTable? SharedStringTable { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SingleCellTablePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SingleCellTablePart.g.cs index 5c48dc459..b7e5b5883 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SingleCellTablePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SingleCellTablePart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.SingleXmlCells? SingleXmlCells { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicerCachePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicerCachePart.g.cs index aeb647946..989fb933d 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicerCachePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicerCachePart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2010.Excel.SlicerCacheDefinition? SlicerCacheDefinition { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicersPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicersPart.g.cs index 627feb847..890679d57 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicersPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlicersPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2010.Excel.Slicers? Slicers { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideCommentsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideCommentsPart.g.cs index d1ca813b1..9aed13ccb 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideCommentsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideCommentsPart.g.cs @@ -33,7 +33,6 @@ internal SlideCommentsPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.CommentList? CommentList { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideLayoutPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideLayoutPart.g.cs index 199f77c70..7c8d4ad13 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideLayoutPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideLayoutPart.g.cs @@ -130,7 +130,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.SlideLayout? SlideLayout { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideMasterPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideMasterPart.g.cs index d65bd9d34..e4cdbebed 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideMasterPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideMasterPart.g.cs @@ -135,7 +135,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.SlideMaster? SlideMaster { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlidePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlidePart.g.cs index ef218b26e..e867c7586 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlidePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlidePart.g.cs @@ -140,7 +140,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.Slide? Slide { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideSyncDataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideSyncDataPart.g.cs index c8181a86c..3cee145fe 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideSyncDataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_SlideSyncDataPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.SlideSyncProperties? SlideSyncProperties { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableDefinitionPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableDefinitionPart.g.cs index 697631bf1..f58bd9eb2 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableDefinitionPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableDefinitionPart.g.cs @@ -59,7 +59,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.Table? Table { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableStylesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableStylesPart.g.cs index 6de1a5c85..a1099adb2 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableStylesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TableStylesPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Drawing.TableStyleList? TableStyleList { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemeOverridePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemeOverridePart.g.cs index 28bc8c84b..472fbb879 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemeOverridePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemeOverridePart.g.cs @@ -60,7 +60,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Drawing.ThemeOverride? ThemeOverride { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemePart.g.cs index 313ad60dd..2f8c067e3 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ThemePart.g.cs @@ -60,7 +60,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Drawing.Theme? Theme { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLineCachePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLineCachePart.g.cs index 5898b2dad..5f78e7679 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLineCachePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLineCachePart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2013.Excel.TimelineCacheDefinition? TimelineCacheDefinition { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLinePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLinePart.g.cs index 9347fee16..6d0125de2 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLinePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_TimeLinePart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2013.Excel.Timelines? Timelines { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_UserDefinedTagsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_UserDefinedTagsPart.g.cs index 74160ccae..73c0dcbbd 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_UserDefinedTagsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_UserDefinedTagsPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.TagList? TagList { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VbaDataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VbaDataPart.g.cs index 602c84033..db4cf9a6c 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VbaDataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VbaDataPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office.Word.VbaSuppData? VbaSuppData { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ViewPropertiesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ViewPropertiesPart.g.cs index cdd6240b7..e37cde333 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ViewPropertiesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ViewPropertiesPart.g.cs @@ -59,7 +59,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Presentation.ViewProperties? ViewProperties { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VolatileDependenciesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VolatileDependenciesPart.g.cs index d018e298f..a7c98b942 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VolatileDependenciesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_VolatileDependenciesPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.VolatileTypes? VolatileTypes { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExTaskpanesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExTaskpanesPart.g.cs index 72ce92d3c..8502f50c4 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExTaskpanesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExTaskpanesPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2013.WebExtentionPane.Taskpanes? Taskpanes { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExtensionPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExtensionPart.g.cs index 6be6c7228..c50f7f58e 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExtensionPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebExtensionPart.g.cs @@ -60,7 +60,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2013.WebExtension.WebExtension? WebExtension { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebSettingsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebSettingsPart.g.cs index d97e35048..348206495 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebSettingsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WebSettingsPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Wordprocessing.WebSettings? WebSettings { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordCommentsExtensiblePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordCommentsExtensiblePart.g.cs index 78f55d6d1..d3cb7eead 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordCommentsExtensiblePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordCommentsExtensiblePart.g.cs @@ -33,7 +33,6 @@ internal WordCommentsExtensiblePart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2021.Word.CommentsExt.CommentsExtensible? CommentsExtensible { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsExPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsExPart.g.cs index 91879c66f..4c69cb9b9 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsExPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsExPart.g.cs @@ -48,7 +48,6 @@ internal WordprocessingCommentsExPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2013.Word.CommentsEx? CommentsEx { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsIdsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsIdsPart.g.cs index 4c070c33c..5e2943cbb 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsIdsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsIdsPart.g.cs @@ -48,7 +48,6 @@ internal WordprocessingCommentsIdsPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2019.Word.Cid.CommentsIds? CommentsIds { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsPart.g.cs index 06ef4e93d..cd2af1c13 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingCommentsPart.g.cs @@ -48,7 +48,6 @@ internal WordprocessingCommentsPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Wordprocessing.Comments? Comments { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingPeoplePart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingPeoplePart.g.cs index 405f4c0c6..19eecc9a4 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingPeoplePart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WordprocessingPeoplePart.g.cs @@ -51,7 +51,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2013.Word.People? People { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPart.g.cs index 22afe10c3..3c1e328c7 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPart.g.cs @@ -196,7 +196,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.Workbook? Workbook { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPersonPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPersonPart.g.cs index aaf82c936..f1f25d22a 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPersonPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookPersonPart.g.cs @@ -51,7 +51,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.PersonList? PersonList { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionHeaderPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionHeaderPart.g.cs index ade57a4d7..9aafb0425 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionHeaderPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionHeaderPart.g.cs @@ -36,7 +36,6 @@ internal WorkbookRevisionHeaderPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.Headers? Headers { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionLogPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionLogPart.g.cs index deb96ae08..17cfbc723 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionLogPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookRevisionLogPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.Revisions? Revisions { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookStylesPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookStylesPart.g.cs index 1d198a84d..55eb96efb 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookStylesPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookStylesPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.Stylesheet? Stylesheet { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookUserDataPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookUserDataPart.g.cs index 2f4d53bc0..54e6cbffa 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookUserDataPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorkbookUserDataPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.Users? Users { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetCommentsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetCommentsPart.g.cs index 0feecaf94..bd9be75c5 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetCommentsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetCommentsPart.g.cs @@ -33,7 +33,6 @@ internal WorksheetCommentsPart() /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.Comments? Comments { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetPart.g.cs index b4d5f833c..482b263ab 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetPart.g.cs @@ -150,7 +150,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Spreadsheet.Worksheet? Worksheet { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetSortMapPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetSortMapPart.g.cs index 3354331bf..1ac193d8e 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetSortMapPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetSortMapPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office.Excel.WorksheetSortMap? WorksheetSortMap { get diff --git a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetThreadedCommentsPart.g.cs b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetThreadedCommentsPart.g.cs index 6befe743c..f37c15418 100644 --- a/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetThreadedCommentsPart.g.cs +++ b/generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_WorksheetThreadedCommentsPart.g.cs @@ -54,7 +54,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - [DisallowNull] public DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedComments? ThreadedComments { get diff --git a/samples/Linq/SvgExample/StronglyTypedTools.cs b/samples/Linq/SvgExample/StronglyTypedTools.cs index fad18f2e4..6c32b3f62 100644 --- a/samples/Linq/SvgExample/StronglyTypedTools.cs +++ b/samples/Linq/SvgExample/StronglyTypedTools.cs @@ -20,11 +20,11 @@ public static void AddSvg(Stream stream, string svgPath, double percentageOfCy) { using PresentationDocument presentationDocument = PresentationDocument.Open(stream, true); PresentationPart presentationPart = presentationDocument.PresentationPart ?? - throw new InvalidOperationException(@"PresentationDocument is invalid."); + throw new InvalidOperationException("PresentationDocument is invalid."); if (presentationPart.Presentation is null) { - throw new ArgumentNullException(@"Presentation root element is missing!"); + throw new ArgumentNullException("Presentation root element is missing!"); } // Get relationship ID of first slide. @@ -33,7 +33,7 @@ public static void AddSvg(Stream stream, string svgPath, double percentageOfCy) .SlideIdList? .Elements() .Select(slideId => (string)slideId.RelationshipId!) - .FirstOrDefault() ?? throw new InvalidOperationException(@"Presentation has no slides."); + .FirstOrDefault() ?? throw new InvalidOperationException("Presentation has no slides."); // Get first slide's part. var slidePart = (SlidePart)presentationPart.GetPartById(sldRelId); @@ -95,7 +95,7 @@ public static void AddSvg(Stream stream, string svgPath, double percentageOfCy) if (slidePart.Slide is null) { - throw new ArgumentNullException(@"Slide root element is missing!"); + throw new ArgumentNullException("Slide root element is missing!"); } Presentation.ShapeTree shapeTree = slidePart @@ -120,7 +120,7 @@ private static Presentation.ShapeProperties GetShapeProperties(PresentationPart { if (part.Presentation is null) { - throw new ArgumentNullException(@"Presentation root element is missing!"); + throw new ArgumentNullException("Presentation root element is missing!"); } Presentation.SlideSize slideSize = part.Presentation.SlideSize!; From eba7b64b5bf0077dad743e52114d0010c109eb58 Mon Sep 17 00:00:00 2001 From: Tom Jebo Date: Fri, 25 Apr 2025 14:38:11 -0700 Subject: [PATCH 4/6] turn on nullable for projects that include part root element tests --- .../Packaging/PartExtensionProvider.cs | 2 +- .../OpenXmlSupportedRelationshipExtensions.cs | 4 +-- .../Builder/OpenXmlPackageBuilderTests.cs | 5 +-- ...umentFormat.OpenXml.Framework.Tests.csproj | 1 + .../ElementLookupTests.cs | 22 +++++++----- .../Features/PackageEventsTests.cs | 4 +-- .../Features/PackageUriHandlingTests.cs | 2 +- .../ObjectSizeTests.cs | 2 +- .../OpenXmlPartTests.cs | 2 +- .../PropertyBuilderTests.cs | 2 +- .../TestUtility.cs | 6 ++-- .../ValidatorAttributeTests.cs | 6 ++-- ...umentFormat.OpenXml.Packaging.Tests.csproj | 1 + .../OpenXmlPackageTests.cs | 30 +++++++++++----- .../OpenXmlPartReaderTests.cs | 6 ++-- .../PartConstraintRuleTests.cs | 35 +++++++++++-------- .../ParticleTests.cs | 17 ++++----- .../DocumentFormat.OpenXml.Tests.csproj | 1 + 18 files changed, 86 insertions(+), 62 deletions(-) diff --git a/src/DocumentFormat.OpenXml.Framework/Packaging/PartExtensionProvider.cs b/src/DocumentFormat.OpenXml.Framework/Packaging/PartExtensionProvider.cs index c1af8a79e..4548f5812 100644 --- a/src/DocumentFormat.OpenXml.Framework/Packaging/PartExtensionProvider.cs +++ b/src/DocumentFormat.OpenXml.Framework/Packaging/PartExtensionProvider.cs @@ -28,7 +28,7 @@ public PartExtensionProvider() /// The content type /// Part Extension (".xml") to be used for the part with the specified content type. /// Thrown when either parameter is null. - public void Register(string contentType, string extension) + public void Register(string? contentType, string? extension) { if (contentType is null) { diff --git a/src/DocumentFormat.OpenXml/Packaging/OpenXmlSupportedRelationshipExtensions.cs b/src/DocumentFormat.OpenXml/Packaging/OpenXmlSupportedRelationshipExtensions.cs index 48010f483..12d2595eb 100644 --- a/src/DocumentFormat.OpenXml/Packaging/OpenXmlSupportedRelationshipExtensions.cs +++ b/src/DocumentFormat.OpenXml/Packaging/OpenXmlSupportedRelationshipExtensions.cs @@ -11,7 +11,7 @@ namespace DocumentFormat.OpenXml.Packaging; /// public static class OpenXmlSupportedRelationshipExtensions { - private static TChild InitPart(this OpenXmlPartContainer parent, TChild childPart, PartTypeInfo partType, string? relId = null) + private static TChild InitPart(this OpenXmlPartContainer? parent, TChild childPart, PartTypeInfo partType, string? relId = null) where TChild : OpenXmlPart { if (parent == null) @@ -54,7 +54,7 @@ private static T DoInitPart(OpenXmlPartContainer parent, T childPart, string /// The relationship id. Optional, default to null. /// The newly added part public static AlternativeFormatImportPart AddAlternativeFormatImportPart(this T parent, PartTypeInfo partType, string? id = null) - where T : OpenXmlPartContainer, ISupportedRelationship + where T : OpenXmlPartContainer?, ISupportedRelationship? => InitPart(parent, new AlternativeFormatImportPart(), partType, id); /// diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/Builder/OpenXmlPackageBuilderTests.cs b/test/DocumentFormat.OpenXml.Framework.Tests/Builder/OpenXmlPackageBuilderTests.cs index 248b79f13..b460e63b8 100644 --- a/test/DocumentFormat.OpenXml.Framework.Tests/Builder/OpenXmlPackageBuilderTests.cs +++ b/test/DocumentFormat.OpenXml.Framework.Tests/Builder/OpenXmlPackageBuilderTests.cs @@ -2,11 +2,8 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. using DocumentFormat.OpenXml.Builder; -using DocumentFormat.OpenXml.Features; -using DocumentFormat.OpenXml.Framework.Tests.Builder; using DocumentFormat.OpenXml.Packaging; using System.Collections.Generic; -using System.IO; using System.Linq; using Xunit; @@ -258,7 +255,7 @@ private static void Add(OpenXmlPackage package, int value) private sealed class Builder : OpenXmlPackageBuilder { - public Builder(Builder other = null) + public Builder(Builder? other = null) : base(other) { } diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/DocumentFormat.OpenXml.Framework.Tests.csproj b/test/DocumentFormat.OpenXml.Framework.Tests/DocumentFormat.OpenXml.Framework.Tests.csproj index a4cee9e6e..48ef71540 100644 --- a/test/DocumentFormat.OpenXml.Framework.Tests/DocumentFormat.OpenXml.Framework.Tests.csproj +++ b/test/DocumentFormat.OpenXml.Framework.Tests/DocumentFormat.OpenXml.Framework.Tests.csproj @@ -5,6 +5,7 @@ true false Exe + enable diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/ElementLookupTests.cs b/test/DocumentFormat.OpenXml.Framework.Tests/ElementLookupTests.cs index aff81dc10..280fa4851 100644 --- a/test/DocumentFormat.OpenXml.Framework.Tests/ElementLookupTests.cs +++ b/test/DocumentFormat.OpenXml.Framework.Tests/ElementLookupTests.cs @@ -58,7 +58,9 @@ public void VerifyTypedRootsCanBeCreatedWord() // Act/Assert foreach (var rootType in allTypedParts) { +#nullable disable var root = ((OpenXmlElement)Activator.CreateInstance(rootType))!; +#nullable enable Assert.True(feature.TryCreate(root.QName, out var created)); Assert.IsType(rootType, created); } @@ -102,7 +104,7 @@ public CompositeRootElementFeature(params OpenXmlPackage[] package) _features = package.Select(p => p.Features.GetRequired()).ToArray(); } - public bool TryCreate(in OpenXmlQualifiedName qname, [NotNullWhen(true)] out OpenXmlElement element) + public bool TryCreate(in OpenXmlQualifiedName qname, [NotNullWhen(true)] out OpenXmlElement? element) { foreach (var feature in _features) { @@ -131,8 +133,10 @@ ElementFactoryCollection GetLookup() { if (type.GetConstructor(Cached.Array()) is not null) { +#nullable disable var instance = (OpenXmlElement)Activator.CreateInstance(type); - return instance.Metadata.Children; +#nullable enable + return instance!.Metadata.Children; } else { @@ -143,15 +147,15 @@ ElementFactoryCollection GetLookup() Children = GetLookup().Elements.Select(t => new OpenXmlTypeProxy(t.Type)); } - public string Element { get; set; } + public string? Element { get; set; } - public IEnumerable Children { get; set; } + public IEnumerable? Children { get; set; } - public override bool Equals(object obj) => Equals(obj as LookupData); + public override bool Equals(object? obj) => Equals(obj as LookupData); - public bool Equals(LookupData other) + public bool Equals(LookupData? other) { - if (other is null) + if ((other is null) || (other.Children is null) || (Children is null)) { return false; } @@ -186,9 +190,9 @@ public OpenXmlTypeProxy(OpenXmlSchemaType type) public OpenXmlQualifiedName Type { get; set; } - public bool Equals(OpenXmlTypeProxy other) => other is not null && Name.Equals(other.Name) && Type.Equals(other.Type); + public bool Equals(OpenXmlTypeProxy? other) => other is not null && Name.Equals(other.Name) && Type.Equals(other.Type); - public override bool Equals(object obj) => obj is OpenXmlTypeProxy other && Equals(other); + public override bool Equals(object? obj) => obj is OpenXmlTypeProxy other && Equals(other); public override int GetHashCode() => Name.GetHashCode() ^ Type.GetHashCode(); diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/Features/PackageEventsTests.cs b/test/DocumentFormat.OpenXml.Framework.Tests/Features/PackageEventsTests.cs index e8ffb1dc3..2ae43179f 100644 --- a/test/DocumentFormat.OpenXml.Framework.Tests/Features/PackageEventsTests.cs +++ b/test/DocumentFormat.OpenXml.Framework.Tests/Features/PackageEventsTests.cs @@ -19,7 +19,7 @@ public void PackageEventCalledOnClose() using (var package = WordprocessingDocument.Create(ms, WordprocessingDocumentType.Document)) { package.AddPackageEventsFeature(); - package.Features.Get().Change += a => events.Add(a.Type); + package.Features.Get()!.Change += a => events.Add(a.Type); } Assert.Collection( @@ -45,7 +45,7 @@ public void PartIdentifiedOpening() var deleting = default(OpenXmlPart); var deleted = default(OpenXmlPart); - package.Features.Get().Change += a => + package.Features.Get()!.Change += a => { events.Add(a.Type); diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/Features/PackageUriHandlingTests.cs b/test/DocumentFormat.OpenXml.Framework.Tests/Features/PackageUriHandlingTests.cs index 0deb4e998..701741e47 100644 --- a/test/DocumentFormat.OpenXml.Framework.Tests/Features/PackageUriHandlingTests.cs +++ b/test/DocumentFormat.OpenXml.Framework.Tests/Features/PackageUriHandlingTests.cs @@ -244,7 +244,7 @@ private static string GetRelationshipContents(RelationshipInfo relationship) private sealed class DisposableFeature : IDisposableFeature, IDisposable { - private Action _dispose; + private Action? _dispose; void IDisposable.Dispose() => _dispose?.Invoke(); diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/ObjectSizeTests.cs b/test/DocumentFormat.OpenXml.Framework.Tests/ObjectSizeTests.cs index 2f759f2b6..2660e9811 100644 --- a/test/DocumentFormat.OpenXml.Framework.Tests/ObjectSizeTests.cs +++ b/test/DocumentFormat.OpenXml.Framework.Tests/ObjectSizeTests.cs @@ -50,7 +50,7 @@ public void VerifySize(Type type, int size, int fullSize, int padding, int field private static string GetTypeName(Type type) { - return type.FullName.Substring(type.FullName.IndexOf('+') + 1).Replace('+', '.'); + return type.FullName!.Substring(type.FullName.IndexOf('+') + 1).Replace('+', '.'); } private sealed class TestOpenXmlElement : OpenXmlElement diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/OpenXmlPartTests.cs b/test/DocumentFormat.OpenXml.Framework.Tests/OpenXmlPartTests.cs index 11b20f675..ac49ee52a 100644 --- a/test/DocumentFormat.OpenXml.Framework.Tests/OpenXmlPartTests.cs +++ b/test/DocumentFormat.OpenXml.Framework.Tests/OpenXmlPartTests.cs @@ -71,7 +71,7 @@ public void ExtensionTestKnownContentType() var contentTypeFeature = Substitute.For(); var expectedUri = new Uri(FilePath, UriKind.Relative); - partExtensionFeature.TryGetExtension(ContentType, out string expectedExt).Returns(callInfo => + partExtensionFeature.TryGetExtension(ContentType, out string? expectedExt).Returns(callInfo => { callInfo[1] = ExpectedExt; return true; diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/PropertyBuilderTests.cs b/test/DocumentFormat.OpenXml.Framework.Tests/PropertyBuilderTests.cs index a3b6dc875..db92c489a 100644 --- a/test/DocumentFormat.OpenXml.Framework.Tests/PropertyBuilderTests.cs +++ b/test/DocumentFormat.OpenXml.Framework.Tests/PropertyBuilderTests.cs @@ -61,7 +61,7 @@ public void IsRequired() private class SomeElement : OpenXmlElement { - public StringValue Str { get; set; } + public StringValue? Str { get; set; } public override bool HasChildren => throw new NotImplementedException(); diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/TestUtility.cs b/test/DocumentFormat.OpenXml.Framework.Tests/TestUtility.cs index 4d0c98b9e..49c147202 100644 --- a/test/DocumentFormat.OpenXml.Framework.Tests/TestUtility.cs +++ b/test/DocumentFormat.OpenXml.Framework.Tests/TestUtility.cs @@ -22,10 +22,12 @@ internal static class TestUtility WriteIndented = true, }; - public static T Deserialize(string name) +#nullable enable + + public static T? Deserialize(string name) { using (var stream = typeof(TestUtility).GetTypeInfo().Assembly.GetManifestResourceStream($"DocumentFormat.OpenXml.Framework.Tests.{name}")) - using (var reader = new StreamReader(stream)) + using (var reader = new StreamReader(stream!)) { var txt = reader.ReadToEnd(); diff --git a/test/DocumentFormat.OpenXml.Framework.Tests/ValidatorAttributeTests.cs b/test/DocumentFormat.OpenXml.Framework.Tests/ValidatorAttributeTests.cs index 5e7d24888..af2428fd3 100644 --- a/test/DocumentFormat.OpenXml.Framework.Tests/ValidatorAttributeTests.cs +++ b/test/DocumentFormat.OpenXml.Framework.Tests/ValidatorAttributeTests.cs @@ -58,7 +58,7 @@ public void JustUnion() private class NoValidatorsElement : BaseElement { - public StringValue Val { get; set; } + public StringValue? Val { get; set; } internal override void ConfigureMetadata(ElementMetadata.Builder builder) => builder.AddElement() .AddAttribute("val", a => a.Val); @@ -66,7 +66,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) => bui private class ContainsRequiredValidator : BaseElement { - public StringValue Val { get; set; } + public StringValue? Val { get; set; } internal override void ConfigureMetadata(ElementMetadata.Builder builder) => builder.AddElement() .AddAttribute("val", a => a.Val, a => @@ -77,7 +77,7 @@ internal override void ConfigureMetadata(ElementMetadata.Builder builder) => bui private class JustUnionValidator : BaseElement { - public StringValue Val { get; set; } + public StringValue? Val { get; set; } internal override void ConfigureMetadata(ElementMetadata.Builder builder) => builder.AddElement() .AddAttribute("val", a => a.Val, a => diff --git a/test/DocumentFormat.OpenXml.Packaging.Tests/DocumentFormat.OpenXml.Packaging.Tests.csproj b/test/DocumentFormat.OpenXml.Packaging.Tests/DocumentFormat.OpenXml.Packaging.Tests.csproj index 76b77b5a2..07e991c0a 100644 --- a/test/DocumentFormat.OpenXml.Packaging.Tests/DocumentFormat.OpenXml.Packaging.Tests.csproj +++ b/test/DocumentFormat.OpenXml.Packaging.Tests/DocumentFormat.OpenXml.Packaging.Tests.csproj @@ -4,6 +4,7 @@ $(TestTargetFrameworks) true Exe + enable diff --git a/test/DocumentFormat.OpenXml.Packaging.Tests/OpenXmlPackageTests.cs b/test/DocumentFormat.OpenXml.Packaging.Tests/OpenXmlPackageTests.cs index 1f4a0b86f..3bb51863d 100644 --- a/test/DocumentFormat.OpenXml.Packaging.Tests/OpenXmlPackageTests.cs +++ b/test/DocumentFormat.OpenXml.Packaging.Tests/OpenXmlPackageTests.cs @@ -164,7 +164,7 @@ public void CanRoundTripWordprocessingDocumentWithAltChunks() using (WordprocessingDocument roundTripped = WordprocessingDocument.FromFlatOpcDocument(flatOpcDocument)) { - List altChunkParts = roundTripped.MainDocumentPart + List altChunkParts = roundTripped.MainDocumentPart! .GetPartsOfType() .ToList(); @@ -201,13 +201,13 @@ public void CanTransformWordprocessingDocumentWithAltChunksToFlatOpc() .ToList(); // We want our MainDocumentPart to contain XML data. - Assert.Equal(WordprocessingMLContentType, (string)mainDocumentPart.Attribute(Pkg + "contentType")); + Assert.Equal(WordprocessingMLContentType, (string?)mainDocumentPart.Attribute(Pkg + "contentType")); Assert.NotEmpty(mainDocumentPart.Elements(Pkg + "xmlData")); // We want to see each one of our AlternativeFormatImportParts. - Assert.Contains(altChunkParts, p => (string)p.Attribute(Pkg + "contentType") == XhtmlContentType); - Assert.Contains(altChunkParts, p => (string)p.Attribute(Pkg + "contentType") == XmlContentType); - Assert.Contains(altChunkParts, p => (string)p.Attribute(Pkg + "contentType") == WordprocessingMLContentType); + Assert.Contains(altChunkParts, p => (string?)p.Attribute(Pkg + "contentType") == XhtmlContentType); + Assert.Contains(altChunkParts, p => (string?)p.Attribute(Pkg + "contentType") == XmlContentType); + Assert.Contains(altChunkParts, p => (string?)p.Attribute(Pkg + "contentType") == WordprocessingMLContentType); // We want all of our AlternativeFormatImportParts to contain binary data, // even though two of them have a content type ending with "+xml". @@ -276,11 +276,23 @@ public void TestOpenModel3DWrittenByPowerPoint_DotMime() using var presDoc = PresentationDocument.Open(testFile, false); Assert.NotNull(presDoc); + Assert.NotNull(presDoc.PresentationPart); // Check to see that the Model3DReferenceRelationshippart has content type 'model/gltf-binary' - SlidePart slidePart = presDoc.PresentationPart.GetPartsOfType().FirstOrDefault(); + PresentationPart? presentationPart = presDoc.PresentationPart; + IEnumerable? slideParts = presentationPart.GetPartsOfType(); + + Assert.NotNull(slideParts); + + Assert.True(slideParts.Count() > 0); + + SlidePart? slidePart = slideParts.First(); + IEnumerable model3DReferenceRelationshipParts = slidePart.Model3DReferenceRelationshipParts; - Model3DReferenceRelationshipPart model3DReferenceRelationshipPart = model3DReferenceRelationshipParts.FirstOrDefault(); + + Assert.True(model3DReferenceRelationshipParts.Count() > 0); + + Model3DReferenceRelationshipPart model3DReferenceRelationshipPart = model3DReferenceRelationshipParts.First(); Assert.Equal("model/gltf-binary", model3DReferenceRelationshipPart.ContentType); } @@ -296,9 +308,9 @@ public void TestOpenModel3DWrittenByPowerPoint_DashMime() Assert.NotNull(presDoc); // Check to see that the Model3DReferenceRelationshippart has content type 'model/gltf-binary' - SlidePart slidePart = presDoc.PresentationPart.GetPartsOfType().FirstOrDefault(); + SlidePart slidePart = presDoc.PresentationPart!.GetPartsOfType().First(); IEnumerable model3DReferenceRelationshipParts = slidePart.Model3DReferenceRelationshipParts; - Model3DReferenceRelationshipPart model3DReferenceRelationshipPart = model3DReferenceRelationshipParts.FirstOrDefault(); + Model3DReferenceRelationshipPart model3DReferenceRelationshipPart = model3DReferenceRelationshipParts.First(); Assert.Equal("model/gltf-binary", model3DReferenceRelationshipPart.ContentType); } diff --git a/test/DocumentFormat.OpenXml.Packaging.Tests/OpenXmlPartReaderTests.cs b/test/DocumentFormat.OpenXml.Packaging.Tests/OpenXmlPartReaderTests.cs index 1dc0fae9a..24d0552ca 100644 --- a/test/DocumentFormat.OpenXml.Packaging.Tests/OpenXmlPartReaderTests.cs +++ b/test/DocumentFormat.OpenXml.Packaging.Tests/OpenXmlPartReaderTests.cs @@ -15,8 +15,8 @@ public class OpenXmlPartReaderTests [Fact] public void ThrowsNull() { - Assert.Throws(() => new OpenXmlPartReader(null)); - Assert.Throws(() => new OpenXmlPartReader(null, true)); + Assert.Throws(() => new OpenXmlPartReader(null!)); + Assert.Throws(() => new OpenXmlPartReader(null!, true)); } [InlineData("", "UTF-8", true)] @@ -27,7 +27,7 @@ public void ThrowsNull() [InlineData("", null, null)] [InlineData("", null, null)] [Theory] - public void ExtractsInfoFromStream(string xml, string encoding, bool? standalone) + public void ExtractsInfoFromStream(string xml, string? encoding, bool? standalone) { var features = new FeatureCollection(); var elementFactory = Substitute.For(); diff --git a/test/DocumentFormat.OpenXml.Packaging.Tests/PartConstraintRuleTests.cs b/test/DocumentFormat.OpenXml.Packaging.Tests/PartConstraintRuleTests.cs index 9e2f89950..b69c4359b 100644 --- a/test/DocumentFormat.OpenXml.Packaging.Tests/PartConstraintRuleTests.cs +++ b/test/DocumentFormat.OpenXml.Packaging.Tests/PartConstraintRuleTests.cs @@ -85,6 +85,7 @@ public void ValidatePart(Type partType) Assert.Equal(expectedConstraints.ContentType, part.ContentType); } + Assert.NotNull(expectedConstraints.Parts); #if DEBUG _output.WriteObjectToTempFile("expected constraints", expectedConstraints.Parts.OrderBy(p => p.RelationshipType)); _output.WriteObjectToTempFile("actual constraints", constraints.Rules.OrderBy(p => p.RelationshipType).Select(p => new PartConstraintRule2(p))); @@ -133,17 +134,19 @@ private static IEnumerable GetParts() => typeof(SpreadsheetDocument) private static OpenXmlPart InitializePart(Type type) { +#nullable disable var part = (OpenXmlPart)Activator.CreateInstance(type, true); +#nullable enable var appType = Substitute.For(); appType.Type.Returns(ApplicationType.None); - part.Features.Set(appType); + part!.Features.Set(appType); return part; } - private static ConstraintData GetConstraintData(OpenXmlPart part) => _cachedConstraintData.Value[part.GetType().FullName]; + private static ConstraintData GetConstraintData(OpenXmlPart part) => _cachedConstraintData.Value[part.GetType().FullName!]; private static Lazy> _cachedConstraintData = new Lazy>(() => { @@ -151,39 +154,41 @@ private static OpenXmlPart InitializePart(Type type) // If there are added parts, PartConstraintData.json needs to be updated with the new part's data and relationship. using (var stream = typeof(PartConstraintRuleTests).GetTypeInfo().Assembly.GetManifestResourceStream("DocumentFormat.OpenXml.Packaging.Tests.data.PartConstraintData.json")) - using (var reader = new StreamReader(stream)) + using (var reader = new StreamReader(stream!)) { +#nullable disable return JsonConvert.DeserializeObject(reader.ReadToEnd(), new StringEnumConverter()) .ToDictionary(t => t.Name, StringComparer.Ordinal); +#nullable enable } }); #pragma warning disable CA1812 private class ConstraintData { - public string Name { get; set; } + public string? Name { get; set; } - public string ContentType { get; set; } + public string? ContentType { get; set; } public bool IsContentTypeFixed { get; set; } - public string RelationshipType { get; set; } + public string? RelationshipType { get; set; } - public string TargetFileExtension { get; set; } + public string? TargetFileExtension { get; set; } - public string TargetName { get; set; } + public string? TargetName { get; set; } - public string TargetPath { get; set; } + public string? TargetPath { get; set; } - public PartConstraintRule2[] Parts { get; set; } + public PartConstraintRule2[]? Parts { get; set; } } #pragma warning restore CA1712 private class PartConstraintRule2 { - public string RelationshipType { get; set; } + public string? RelationshipType { get; set; } - public string ContentType { get; set; } + public string? ContentType { get; set; } public bool MinOccursIsNonZero { get; set; } @@ -204,7 +209,7 @@ public PartConstraintRule2(PartConstraintRule rule) ContentType = rule.ContentType; } - public override bool Equals(object obj) + public override bool Equals(object? obj) { if (obj is PartConstraintRule2 other) { @@ -225,8 +230,8 @@ public override int GetHashCode() unchecked { int hash = 17; - hash = (hash * HashMultiplier) + StringComparer.Ordinal.GetHashCode(RelationshipType); - hash = (hash * HashMultiplier) + StringComparer.Ordinal.GetHashCode(ContentType); + hash = (hash * HashMultiplier) + StringComparer.Ordinal.GetHashCode(RelationshipType!); + hash = (hash * HashMultiplier) + StringComparer.Ordinal.GetHashCode(ContentType!); hash = (hash * HashMultiplier) + MinOccursIsNonZero.GetHashCode(); hash = (hash * HashMultiplier) + MaxOccursGreatThanOne.GetHashCode(); hash = (hash * HashMultiplier) + FileFormat.GetHashCode(); diff --git a/test/DocumentFormat.OpenXml.Packaging.Tests/ParticleTests.cs b/test/DocumentFormat.OpenXml.Packaging.Tests/ParticleTests.cs index 63d8c3526..c04911d81 100644 --- a/test/DocumentFormat.OpenXml.Packaging.Tests/ParticleTests.cs +++ b/test/DocumentFormat.OpenXml.Packaging.Tests/ParticleTests.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -using DocumentFormat.OpenXml.Features; using DocumentFormat.OpenXml.Framework; using DocumentFormat.OpenXml.Validation.Schema; using Newtonsoft.Json; @@ -179,11 +178,13 @@ public void ValidateExpectedParticles() if (constructor is not null) { +#nullable disable var element = (OpenXmlElement)Activator.CreateInstance(type); +#nullable enable - if (version.AtLeast(element.InitialVersion)) + if (version.AtLeast(element!.InitialVersion)) { - var constraint = element.Metadata.Particle.Particle?.Build(version); + var constraint = element.Metadata.Particle?.Particle?.Build(version); if (constraint is not null) { @@ -238,7 +239,7 @@ private void AssertEqual(Dictionary> } using (var expectedStream = typeof(ParticleTests).GetTypeInfo().Assembly.GetManifestResourceStream("DocumentFormat.OpenXml.Packaging.Tests.data.Particles.json")) - using (var expectedStreamReader = new StreamReader(expectedStream)) + using (var expectedStreamReader = new StreamReader(expectedStream!)) using (var actualStream = File.OpenRead(tmp)) using (var actualStreamReader = new StreamReader(actualStream)) { @@ -307,7 +308,7 @@ public void Add(FileFormatVersions key, T value) { foreach (var entry in _dic) { - if (entry.Value.Equals(value)) + if (entry.Value!.Equals(value)) { _dic.Remove(entry); _dic.Insert(0, new KeyValuePair(entry.Key | key, value)); @@ -325,11 +326,11 @@ public void Add(FileFormatVersions key, T value) private class TypeNameConverter : JsonConverter { - public override Type ReadJson(JsonReader reader, Type objectType, Type existingValue, bool hasExistingValue, JsonSerializer serializer) + public override Type ReadJson(JsonReader reader, Type objectType, Type? existingValue, bool hasExistingValue, JsonSerializer serializer) => throw new NotImplementedException(); - public override void WriteJson(JsonWriter writer, Type value, JsonSerializer serializer) - => serializer.Serialize(writer, value.FullName); + public override void WriteJson(JsonWriter writer, Type? value, JsonSerializer serializer) + => serializer.Serialize(writer, value!.FullName); } private sealed class QNameConverter : JsonConverter diff --git a/test/DocumentFormat.OpenXml.Tests/DocumentFormat.OpenXml.Tests.csproj b/test/DocumentFormat.OpenXml.Tests/DocumentFormat.OpenXml.Tests.csproj index 4ef200dd7..2870afdfc 100644 --- a/test/DocumentFormat.OpenXml.Tests/DocumentFormat.OpenXml.Tests.csproj +++ b/test/DocumentFormat.OpenXml.Tests/DocumentFormat.OpenXml.Tests.csproj @@ -4,6 +4,7 @@ $(TestTargetFrameworks) true Exe + disable From 10cbdbb0d6a47403055ab55a7ff317487a31a8f6 Mon Sep 17 00:00:00 2001 From: Tom Jebo Date: Sun, 27 Apr 2025 18:15:49 -0700 Subject: [PATCH 5/6] use First instead of FirstOrDefault --- samples/Linq/SvgExample/StronglyTypedTools.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/Linq/SvgExample/StronglyTypedTools.cs b/samples/Linq/SvgExample/StronglyTypedTools.cs index 6c32b3f62..1d0a45b55 100644 --- a/samples/Linq/SvgExample/StronglyTypedTools.cs +++ b/samples/Linq/SvgExample/StronglyTypedTools.cs @@ -28,12 +28,12 @@ public static void AddSvg(Stream stream, string svgPath, double percentageOfCy) } // Get relationship ID of first slide. - string sldRelId = presentationPart + string? sldRelId = presentationPart .Presentation .SlideIdList? .Elements() .Select(slideId => (string)slideId.RelationshipId!) - .FirstOrDefault() ?? throw new InvalidOperationException("Presentation has no slides."); + .First(); // Get first slide's part. var slidePart = (SlidePart)presentationPart.GetPartById(sldRelId); From bc91d0a2001b1feb6de6d8c4e249009bf47dcb0d Mon Sep 17 00:00:00 2001 From: Tom Jebo Date: Mon, 28 Apr 2025 08:15:57 -0700 Subject: [PATCH 6/6] revert to previous code --- samples/Linq/SvgExample/StronglyTypedTools.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/Linq/SvgExample/StronglyTypedTools.cs b/samples/Linq/SvgExample/StronglyTypedTools.cs index 1d0a45b55..6c32b3f62 100644 --- a/samples/Linq/SvgExample/StronglyTypedTools.cs +++ b/samples/Linq/SvgExample/StronglyTypedTools.cs @@ -28,12 +28,12 @@ public static void AddSvg(Stream stream, string svgPath, double percentageOfCy) } // Get relationship ID of first slide. - string? sldRelId = presentationPart + string sldRelId = presentationPart .Presentation .SlideIdList? .Elements() .Select(slideId => (string)slideId.RelationshipId!) - .First(); + .FirstOrDefault() ?? throw new InvalidOperationException("Presentation has no slides."); // Get first slide's part. var slidePart = (SlidePart)presentationPart.GetPartById(sldRelId);