Browse Source

Cleanup in code: converted to auto-property

master
MadBoy_cp 13 years ago
parent
commit
ea3fd641ef
1 changed files with 4 additions and 8 deletions
  1. 4
    8
      DocX/_BaseClasses.cs

+ 4
- 8
DocX/_BaseClasses.cs View File

@@ -19,16 +19,12 @@ namespace Novacode
/// </r>
/// </p>
/// </summary>
private XElement xml;
public XElement Xml { get { return xml; } set { xml = value; } }
public XElement Xml { get; set; }
/// <summary>
/// This is a reference to the DocX object that this element belongs to.
/// Every DocX element is connected to a document.
/// </summary>
private DocX document;
internal DocX Document { get { return document; } set { document = value; } }
internal DocX Document { get; set; }
/// <summary>
/// Store both the document and xml so that they can be accessed by derived types.
/// </summary>
@@ -36,8 +32,8 @@ namespace Novacode
/// <param name="xml">The Xml that gives this element substance</param>
public DocXElement(DocX document, XElement xml)
{
this.document = document;
this.xml = xml;
this.Document = document;
this.Xml = xml;
}
}

Loading…
Cancel
Save