@@ -457,6 +457,7 @@ public void Write(string parentelementname, string elementname, string[] values)
457457 /// <exception cref="InvalidOperationException">When the Element does not exist in a read-only instance.</exception>
458458 /// <param name="elementname">The element name to read the value from.</param>
459459 /// <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." ) ]
460461 public string Read ( string elementname )
461462 {
462463 var elem = this . Doc . Root . Element ( elementname ) ;
@@ -490,6 +491,7 @@ public string Read(string elementname)
490491 /// <param name="elementname">The element name to get the value of a attribute.</param>
491492 /// <param name="attributename">The name of the attribute to get the value of.</param>
492493 /// <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." ) ]
493495 public string Read ( string elementname , string attributename )
494496 {
495497 var elem = this . Doc . Root . Element ( elementname ) ;
@@ -545,6 +547,7 @@ public string Read(string elementname, string attributename)
545547 /// A array of values or a empty array of strings if
546548 /// there is no subelements to this element.
547549 /// </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." ) ]
548551 public string [ ] Read ( string parentelementname , string elementname , object unused = null )
549552 {
550553 var elem = this . Doc . Descendants ( parentelementname ) ;
0 commit comments