diff --git a/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Parts/PartWriter.cs b/gen/DocumentFormat.OpenXml.Generator.Models/Generators/Parts/PartWriter.cs index b56d33e9d..d9caba3cc 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() @@ -410,7 +411,7 @@ private static IEnumerable GetSchemaTypedParts(OpenXmlGeneratorServices se writer.WriteDocumentationComment("Gets or sets the root element of this part."); 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..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 @@ -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,7 @@ internal CalculationChainPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.CalculationChain CalculationChain + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Metadata Metadata + 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..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 @@ -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,7 @@ internal ChartColorStylePart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.ColorStyle ColorStyle + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Charts.UserShapes UserShapes + 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..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 @@ -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,7 @@ internal ChartPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Charts.ChartSpace ChartSpace + 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..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 @@ -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,7 @@ internal ChartStylePart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.ChartStyle ChartStyle + 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..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 @@ -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,7 @@ internal ChartsheetPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Chartsheet Chartsheet + 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..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 @@ -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,7 @@ internal CommentAuthorsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.CommentAuthorList CommentAuthorList + 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..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 @@ -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,7 @@ internal ConnectionsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Connections Connections + 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..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 @@ -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,7 @@ internal ControlPropertiesPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2010.Excel.FormControlProperties FormControlProperties + 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..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 @@ -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,7 @@ internal CustomDataPropertiesPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2010.Excel.DatastoreItem DatastoreItem + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.CustomProperties.Properties Properties + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.MapInfo MapInfo + 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..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 @@ -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,7 @@ internal CustomXmlPropertiesPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.CustomXmlDataProperties.DataStoreItem DataStoreItem + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office.Word.TemplateCommandGroup TemplateCommandGroup + 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..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 @@ -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,7 @@ internal DiagramColorsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Diagrams.ColorsDefinition ColorsDefinition + 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..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 @@ -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,7 @@ internal DiagramDataPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Diagrams.DataModelRoot DataModelRoot + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Diagrams.LayoutDefinition LayoutDefinition + 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..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 @@ -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,7 @@ internal DiagramPersistLayoutPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office.Drawing.Drawing Drawing + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Diagrams.StyleDefinition StyleDefinition + 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..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 @@ -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,7 @@ internal DialogsheetPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.DialogSheet DialogSheet + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Settings Settings + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.DocumentTasks.Tasks Tasks + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Spreadsheet.WorksheetDrawing WorksheetDrawing + 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..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 @@ -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,7 @@ internal EndnotesPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Endnotes Endnotes + 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..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 @@ -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,7 @@ internal ExtendedChartPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2016.Drawing.ChartDrawing.ChartSpace ChartSpace + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.ExtendedProperties.Properties Properties + 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..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 @@ -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,7 @@ internal ExternalWorkbookPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.ExternalLink ExternalLink + 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..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 @@ -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,7 @@ internal FeaturePropertyBagsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office.Y2022.FeaturePropertyBag.FeaturePropertyBags FeaturePropertyBags + 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..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 @@ -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,7 @@ internal FontTablePart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Fonts Fonts + 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..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 @@ -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,7 @@ internal FooterPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Footer Footer + 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..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 @@ -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,7 @@ internal FootnotesPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Footnotes Footnotes + 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..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 @@ -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,7 @@ internal GlossaryDocumentPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.GlossaryDocument GlossaryDocument + 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..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 @@ -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,7 @@ internal HandoutMasterPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.HandoutMaster HandoutMaster + 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..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 @@ -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,7 @@ internal HeaderPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Header Header + 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..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 @@ -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,7 @@ internal LabelInfoPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.MipLabelMetaData.ClassificationLabelList ClassificationLabelList + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office.Excel.Macrosheet Macrosheet + 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..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 @@ -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,7 @@ internal MainDocumentPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Document Document + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.Excel.NamedSheetViews.NamedSheetViews NamedSheetViews + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.NotesMaster NotesMaster + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.NotesSlide NotesSlide + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Numbering Numbering + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.PivotCacheDefinition PivotCacheDefinition + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.PivotCacheRecords PivotCacheRecords + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.PivotTableDefinition PivotTableDefinition + 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..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 @@ -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,7 @@ internal PowerPointAuthorsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.PowerPoint.Comment.AuthorList AuthorList + 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..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 @@ -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,7 @@ internal PowerPointCommentPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.PowerPoint.Comment.CommentList CommentList + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.Presentation Presentation + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.PresentationProperties PresentationProperties + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.QueryTable QueryTable + 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..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 @@ -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,7 @@ internal RdArrayPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData2.ArrayData ArrayData + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData.RichValueData RichValueData + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData.RichValueStructures RichValueStructures + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichValueTypesInfo RichValueTypesInfo + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.Excel.RichDataWebImage.WebImagesSupportingRichData WebImagesSupportingRichData + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData2.SupportingPropertyBags SupportingPropertyBags + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData2.SupportingPropertyBagStructures SupportingPropertyBagStructures + 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..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 @@ -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,7 @@ internal RibbonAndBackstageCustomizationsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2010.CustomUI.CustomUI CustomUI + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.RichData2.RichStylesheet RichStylesheet + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.SharedStringTable SharedStringTable + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.SingleXmlCells SingleXmlCells + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2010.Excel.SlicerCacheDefinition SlicerCacheDefinition + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2010.Excel.Slicers Slicers + 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..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 @@ -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,7 @@ internal SlideCommentsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.CommentList CommentList + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.SlideLayout SlideLayout + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.SlideMaster SlideMaster + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.Slide Slide + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.SlideSyncProperties SlideSyncProperties + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Table Table + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.TableStyleList TableStyleList + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.ThemeOverride ThemeOverride + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Drawing.Theme Theme + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.Excel.TimelineCacheDefinition TimelineCacheDefinition + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.Excel.Timelines Timelines + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.TagList TagList + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office.Word.VbaSuppData VbaSuppData + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Presentation.ViewProperties ViewProperties + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.VolatileTypes VolatileTypes + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.WebExtentionPane.Taskpanes Taskpanes + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.WebExtension.WebExtension WebExtension + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.WebSettings WebSettings + 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..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 @@ -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,7 @@ internal WordCommentsExtensiblePart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2021.Word.CommentsExt.CommentsExtensible CommentsExtensible + 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..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 @@ -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,7 @@ internal WordprocessingCommentsExPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.Word.CommentsEx CommentsEx + 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..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 @@ -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,7 @@ internal WordprocessingCommentsIdsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Word.Cid.CommentsIds CommentsIds + 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..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 @@ -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,7 @@ internal WordprocessingCommentsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Wordprocessing.Comments Comments + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2013.Word.People People + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Workbook Workbook + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.PersonList PersonList + 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..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 @@ -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,7 @@ internal WorkbookRevisionHeaderPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Headers Headers + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Revisions Revisions + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Stylesheet Stylesheet + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Users Users + 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..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 @@ -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,7 @@ internal WorksheetCommentsPart() /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Comments Comments + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Spreadsheet.Worksheet Worksheet + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office.Excel.WorksheetSortMap WorksheetSortMap + 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..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 @@ -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,7 @@ private protected override OpenXmlPartRootElement? InternalRootElement /// /// Gets or sets the root element of this part. /// - public DocumentFormat.OpenXml.Office2019.Excel.ThreadedComments.ThreadedComments ThreadedComments + 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..6c32b3f62 100644 --- a/samples/Linq/SvgExample/StronglyTypedTools.cs +++ b/samples/Linq/SvgExample/StronglyTypedTools.cs @@ -20,7 +20,12 @@ 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!"); + } // Get relationship ID of first slide. string sldRelId = presentationPart @@ -28,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); @@ -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..c10b2d632 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() @@ -126,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(); } } } @@ -151,6 +157,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 +218,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.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/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.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.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); } 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