@@ -457,6 +457,7 @@ public void Write(string parentelementname, string elementname, string[] values)
457
457
/// <exception cref="InvalidOperationException">When the Element does not exist in a read-only instance.</exception>
458
458
/// <param name="elementname">The element name to read the value from.</param>
459
459
/// <returns>The value of the input element or <see cref="string.Empty"/>.</returns>
460
+ [ Obsolete ( "The auto create for this method will be removed in a future version, if it was intended use 'TryRead' on future versions instead." ) ]
460
461
public string Read ( string elementname )
461
462
{
462
463
var elem = this . Doc . Root . Element ( elementname ) ;
@@ -490,6 +491,7 @@ public string Read(string elementname)
490
491
/// <param name="elementname">The element name to get the value of a attribute.</param>
491
492
/// <param name="attributename">The name of the attribute to get the value of.</param>
492
493
/// <returns>The value of the input element or <see cref="string.Empty"/>.</returns>
494
+ [ Obsolete ( "The auto create for this method will be removed in a future version, if it was intended use 'TryRead' on future versions instead." ) ]
493
495
public string Read ( string elementname , string attributename )
494
496
{
495
497
var elem = this . Doc . Root . Element ( elementname ) ;
@@ -545,6 +547,7 @@ public string Read(string elementname, string attributename)
545
547
/// A array of values or a empty array of strings if
546
548
/// there is no subelements to this element.
547
549
/// </returns>
550
+ [ Obsolete ( "The auto create for this method will be removed in a future version, if it was intended use 'TryRead' on future versions instead." ) ]
548
551
public string [ ] Read ( string parentelementname , string elementname , object unused = null )
549
552
{
550
553
var elem = this . Doc . Descendants ( parentelementname ) ;
0 commit comments