Skip to content
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.

Commit

Permalink
Warn users of breaking change.
Browse files Browse the repository at this point in the history
  • Loading branch information
AraHaan committed Nov 5, 2018
1 parent 1fb78e9 commit 28c2501
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions XmlAbstraction/XmlObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ public void Write(string parentelementname, string elementname, string[] values)
/// <exception cref="InvalidOperationException">When the Element does not exist in a read-only instance.</exception>
/// <param name="elementname">The element name to read the value from.</param>
/// <returns>The value of the input element or <see cref="string.Empty"/>.</returns>
[Obsolete("The auto create for this method will be removed in a future version, if it was intended use 'TryRead' on future versions instead.")]
public string Read(string elementname)
{
var elem = this.Doc.Root.Element(elementname);
Expand Down Expand Up @@ -490,6 +491,7 @@ public string Read(string elementname)
/// <param name="elementname">The element name to get the value of a attribute.</param>
/// <param name="attributename">The name of the attribute to get the value of.</param>
/// <returns>The value of the input element or <see cref="string.Empty"/>.</returns>
[Obsolete("The auto create for this method will be removed in a future version, if it was intended use 'TryRead' on future versions instead.")]
public string Read(string elementname, string attributename)
{
var elem = this.Doc.Root.Element(elementname);
Expand Down Expand Up @@ -545,6 +547,7 @@ public string Read(string elementname, string attributename)
/// A array of values or a empty array of strings if
/// there is no subelements to this element.
/// </returns>
[Obsolete("The auto create for this method will be removed in a future version, if it was intended use 'TryRead' on future versions instead.")]
public string[] Read(string parentelementname, string elementname, object unused = null)
{
var elem = this.Doc.Descendants(parentelementname);
Expand Down

0 comments on commit 28c2501

Please sign in to comment.