Skip to content

Commit

Permalink
Make LINQ classes partial (#1756)
Browse files Browse the repository at this point in the history
  • Loading branch information
twsouthwick authored Jul 23, 2024
1 parent 2c3d5d2 commit 27ba922
Show file tree
Hide file tree
Showing 105 changed files with 105 additions and 105 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private static void GenerateClass(
output.WriteLine(@" /// </summary>");

// Begin the class declaration.
output.WriteLine($" public static class {className}");
output.WriteLine($" public static partial class {className}");
output.WriteLine(@" {");

// Emit the XNamespace field and determine the RHS prefix of the field declaration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" namespace.
/// </summary>
public static class A
public static partial class A
{
/// <summary>
/// Defines the XML namespace associated with the a prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" namespace.
/// </summary>
public static class A14
public static partial class A14
{
/// <summary>
/// Defines the XML namespace associated with the a14 prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:a15="http://schemas.microsoft.com/office/drawing/2012/main" namespace.
/// </summary>
public static class A15
public static partial class A15
{
/// <summary>
/// Defines the XML namespace associated with the a15 prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:a16="http://schemas.microsoft.com/office/drawing/2014/main" namespace.
/// </summary>
public static class A16
public static partial class A16
{
/// <summary>
/// Defines the XML namespace associated with the a16 prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:a1611="http://schemas.microsoft.com/office/drawing/2016/11/main" namespace.
/// </summary>
public static class A1611
public static partial class A1611
{
/// <summary>
/// Defines the XML namespace associated with the a1611 prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:ac="http://schemas.openxmlformats.org/officeDocument/2006/characteristics" namespace.
/// </summary>
public static class AC
public static partial class AC
{
/// <summary>
/// Defines the XML namespace associated with the ac prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:aclsh="http://schemas.microsoft.com/office/drawing/2020/classificationShape" namespace.
/// </summary>
public static class ACLSH
public static partial class ACLSH
{
/// <summary>
/// Defines the XML namespace associated with the aclsh prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:adec="http://schemas.microsoft.com/office/drawing/2017/decorative" namespace.
/// </summary>
public static class ADEC
public static partial class ADEC
{
/// <summary>
/// Defines the XML namespace associated with the adec prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:ahyp="http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" namespace.
/// </summary>
public static class AHYP
public static partial class AHYP
{
/// <summary>
/// Defines the XML namespace associated with the ahyp prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:aif="http://schemas.microsoft.com/office/drawing/2022/imageformula" namespace.
/// </summary>
public static class AIF
public static partial class AIF
{
/// <summary>
/// Defines the XML namespace associated with the aif prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:alf="http://schemas.microsoft.com/office/drawing/2021/livefeed" namespace.
/// </summary>
public static class ALF
public static partial class ALF
{
/// <summary>
/// Defines the XML namespace associated with the alf prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:aoe="http://schemas.microsoft.com/office/drawing/2021/oembed" namespace.
/// </summary>
public static class AOE
public static partial class AOE
{
/// <summary>
/// Defines the XML namespace associated with the aoe prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:ap="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" namespace.
/// </summary>
public static class AP
public static partial class AP
{
/// <summary>
/// Defines the XML namespace associated with the ap prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:ask="http://schemas.microsoft.com/office/drawing/2018/sketchyshapes" namespace.
/// </summary>
public static class ASK
public static partial class ASK
{
/// <summary>
/// Defines the XML namespace associated with the ask prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:asl="http://schemas.microsoft.com/office/drawing/2021/scriptlink" namespace.
/// </summary>
public static class ASL
public static partial class ASL
{
/// <summary>
/// Defines the XML namespace associated with the asl prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:asvg="http://schemas.microsoft.com/office/drawing/2016/SVG/main" namespace.
/// </summary>
public static class ASVG
public static partial class ASVG
{
/// <summary>
/// Defines the XML namespace associated with the asvg prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" namespace.
/// </summary>
public static class B
public static partial class B
{
/// <summary>
/// Defines the XML namespace associated with the b prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" namespace.
/// </summary>
public static class C
public static partial class C
{
/// <summary>
/// Defines the XML namespace associated with the c prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:c14="http://schemas.microsoft.com/office/drawing/2007/8/2/chart" namespace.
/// </summary>
public static class C14
public static partial class C14
{
/// <summary>
/// Defines the XML namespace associated with the c14 prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart" namespace.
/// </summary>
public static class C15
public static partial class C15
{
/// <summary>
/// Defines the XML namespace associated with the c15 prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:c16r3="http://schemas.microsoft.com/office/drawing/2017/03/chart" namespace.
/// </summary>
public static class C16R3
public static partial class C16R3
{
/// <summary>
/// Defines the XML namespace associated with the c16r3 prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:cdr="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing" namespace.
/// </summary>
public static class CDR
public static partial class CDR
{
/// <summary>
/// Defines the XML namespace associated with the cdr prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:cdr14="http://schemas.microsoft.com/office/drawing/2010/chartDrawing" namespace.
/// </summary>
public static class CDR14
public static partial class CDR14
{
/// <summary>
/// Defines the XML namespace associated with the cdr14 prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:clbl="http://schemas.microsoft.com/office/2020/mipLabelMetadata" namespace.
/// </summary>
public static class CLBL
public static partial class CLBL
{
/// <summary>
/// Defines the XML namespace associated with the clbl prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:comp="http://schemas.openxmlformats.org/drawingml/2006/compatibility" namespace.
/// </summary>
public static class COMP
public static partial class COMP
{
/// <summary>
/// Defines the XML namespace associated with the comp prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:cs="http://schemas.microsoft.com/office/drawing/2012/chartStyle" namespace.
/// </summary>
public static class CS
public static partial class CS
{
/// <summary>
/// Defines the XML namespace associated with the cs prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" namespace.
/// </summary>
public static class CX
public static partial class CX
{
/// <summary>
/// Defines the XML namespace associated with the cx prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram" namespace.
/// </summary>
public static class DGM
public static partial class DGM
{
/// <summary>
/// Defines the XML namespace associated with the dgm prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:dgm14="http://schemas.microsoft.com/office/drawing/2010/diagram" namespace.
/// </summary>
public static class DGM14
public static partial class DGM14
{
/// <summary>
/// Defines the XML namespace associated with the dgm14 prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:dgm1611="http://schemas.microsoft.com/office/drawing/2016/11/diagram" namespace.
/// </summary>
public static class DGM1611
public static partial class DGM1611
{
/// <summary>
/// Defines the XML namespace associated with the dgm1611 prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:dgm1612="http://schemas.microsoft.com/office/drawing/2016/12/diagram" namespace.
/// </summary>
public static class DGM1612
public static partial class DGM1612
{
/// <summary>
/// Defines the XML namespace associated with the dgm1612 prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:ds="http://schemas.openxmlformats.org/officeDocument/2006/customXml" namespace.
/// </summary>
public static class DS
public static partial class DS
{
/// <summary>
/// Defines the XML namespace associated with the ds prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:dsp="http://schemas.microsoft.com/office/drawing/2008/diagram" namespace.
/// </summary>
public static class DSP
public static partial class DSP
{
/// <summary>
/// Defines the XML namespace associated with the dsp prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:emma="http://www.w3.org/2003/04/emma" namespace.
/// </summary>
public static class EMMA
public static partial class EMMA
{
/// <summary>
/// Defines the XML namespace associated with the emma prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:inkml="http://www.w3.org/2003/InkML" namespace.
/// </summary>
public static class INKML
public static partial class INKML
{
/// <summary>
/// Defines the XML namespace associated with the inkml prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:lc="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas" namespace.
/// </summary>
public static class LC
public static partial class LC
{
/// <summary>
/// Defines the XML namespace associated with the lc prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" namespace.
/// </summary>
public static class M
public static partial class M
{
/// <summary>
/// Defines the XML namespace associated with the m prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:msink="http://schemas.microsoft.com/ink/2010/main" namespace.
/// </summary>
public static class MSINK
public static partial class MSINK
{
/// <summary>
/// Defines the XML namespace associated with the msink prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:mso="http://schemas.microsoft.com/office/2006/01/customui" namespace.
/// </summary>
public static class MSO
public static partial class MSO
{
/// <summary>
/// Defines the XML namespace associated with the mso prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:mso14="http://schemas.microsoft.com/office/2009/07/customui" namespace.
/// </summary>
public static class MSO14
public static partial class MSO14
{
/// <summary>
/// Defines the XML namespace associated with the mso14 prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XName fields for the empty namespace.
/// </summary>
public static class NoNamespace
public static partial class NoNamespace
{

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:o="urn:schemas-microsoft-com:office:office" namespace.
/// </summary>
public static class O
public static partial class O
{
/// <summary>
/// Defines the XML namespace associated with the o prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace DocumentFormat.OpenXml.Linq
/// <summary>
/// Declares XNamespace and XName fields for the xmlns:oac="http://schemas.microsoft.com/office/drawing/2013/main/command" namespace.
/// </summary>
public static class OAC
public static partial class OAC
{
/// <summary>
/// Defines the XML namespace associated with the oac prefix.
Expand Down
Loading

0 comments on commit 27ba922

Please sign in to comment.