Przeglądaj źródła

Cleanup in code: converted to auto-property

master
MadBoy_cp 13 lat temu
rodzic
commit
ea3fd641ef
1 zmienionych plików z 4 dodań i 8 usunięć
  1. 4
    8
      DocX/_BaseClasses.cs

+ 4
- 8
DocX/_BaseClasses.cs Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz