Skip to content

Commit 81ac063

Browse files
committed
remove [DisallowNull]
1 parent 1b11370 commit 81ac063

File tree

98 files changed

+5
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+5
-102
lines changed

gen/DocumentFormat.OpenXml.Generator.Models/Generators/Parts/PartWriter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,6 @@ private static IEnumerable<Item> GetSchemaTypedParts(OpenXmlGeneratorServices se
409409
yield return new(ItemType.Property, api.Class, writer =>
410410
{
411411
writer.WriteDocumentationComment("Gets or sets the root element of this part.");
412-
writer.WriteLine("[DisallowNull]");
413412
writer.Write("public ");
414413
writer.Write(apiName);
415414
writer.Write("? ");

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CalculationChainPart.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ internal CalculationChainPart()
3333
/// <summary>
3434
/// Gets or sets the root element of this part.
3535
/// </summary>
36-
[DisallowNull]
3736
public DocumentFormat.OpenXml.Spreadsheet.CalculationChain? CalculationChain
3837
{
3938
get

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CellMetadataPart.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement
4949
/// <summary>
5050
/// Gets or sets the root element of this part.
5151
/// </summary>
52-
[DisallowNull]
5352
public DocumentFormat.OpenXml.Spreadsheet.Metadata? Metadata
5453
{
5554
get

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartColorStylePart.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ internal ChartColorStylePart()
3333
/// <summary>
3434
/// Gets or sets the root element of this part.
3535
/// </summary>
36-
[DisallowNull]
3736
public DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.ColorStyle? ColorStyle
3837
{
3938
get

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartDrawingPart.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ private protected override OpenXmlPartRootElement? InternalRootElement
7070
/// <summary>
7171
/// Gets or sets the root element of this part.
7272
/// </summary>
73-
[DisallowNull]
7473
public DocumentFormat.OpenXml.Drawing.Charts.UserShapes? UserShapes
7574
{
7675
get

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartPart.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ internal ChartPart()
4545
/// <summary>
4646
/// Gets or sets the root element of this part.
4747
/// </summary>
48-
[DisallowNull]
4948
public DocumentFormat.OpenXml.Drawing.Charts.ChartSpace? ChartSpace
5049
{
5150
get

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartStylePart.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ internal ChartStylePart()
3333
/// <summary>
3434
/// Gets or sets the root element of this part.
3535
/// </summary>
36-
[DisallowNull]
3736
public DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle.ChartStyle? ChartStyle
3837
{
3938
get

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ChartsheetPart.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ internal ChartsheetPart()
3434
/// <summary>
3535
/// Gets or sets the root element of this part.
3636
/// </summary>
37-
[DisallowNull]
3837
public DocumentFormat.OpenXml.Spreadsheet.Chartsheet? Chartsheet
3938
{
4039
get

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_CommentAuthorsPart.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ internal CommentAuthorsPart()
3333
/// <summary>
3434
/// Gets or sets the root element of this part.
3535
/// </summary>
36-
[DisallowNull]
3736
public DocumentFormat.OpenXml.Presentation.CommentAuthorList? CommentAuthorList
3837
{
3938
get

generated/DocumentFormat.OpenXml/DocumentFormat.OpenXml.Generator/DocumentFormat.OpenXml.Generator.OpenXmlGenerator/Part_ConnectionsPart.g.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ internal ConnectionsPart()
3333
/// <summary>
3434
/// Gets or sets the root element of this part.
3535
/// </summary>
36-
[DisallowNull]
3736
public DocumentFormat.OpenXml.Spreadsheet.Connections? Connections
3837
{
3938
get

0 commit comments

Comments
 (0)