79635145

Date: 2025-05-23 08:41:23
Score: 2
Natty:
Report link

Thanks to this hint i could resolve my situation from

public class DateiHandling : IDateiHandling
  {
    /// <inheritdoc/>
    public string DateiInhalt(in string ganzerName)
    {
      return File.ReadAllText(ganzerName);//Methode with exceptions i want to convey
    }
  }
public interface IDateiHandling
  {

    /// <summary>
    /// Liest den Inhalt der Datei auf der Festpaltte aus.
    /// </summary>
    /// <param name="ganzerName">Absoluter Pfad zur Datei.</param>
    /// <returns>Inhalt der Datei, als String.</returns>
    /// <inheritdoc cref="File.ReadAllText(string)"/>  //Here the linkage to the original method
    public string DateiInhalt(in string ganzerName);
  }

This Perfectly resulted in me getting all the exceptions info from the Methode File.ReadAllText(string) conveniently displayed in the interface wrapper.

Shows the IntelliSense description with the linked Exceptions

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1): i want
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: FlorianD