La méthode GetFileName de la classe System.Diagnostics.StackTrace est utilisée pour obtenir le nom du fichier source dans lequel se trouve le code à l'endroit où la pile d'appels a été créée. Lorsque cette méthode est appelée, elle renvoie le nom du fichier source sans le chemin d'accès complet. Cela peut être utile pour déterminer où une erreur s'est produite exactement dans le code source lors du débogage d'une application en C#.
C# (CSharp) System.Diagnostics StackTrace.GetFileName - 25 exemples trouvés. Ce sont les exemples réels les mieux notés de System.Diagnostics.StackTrace.GetFileName extraits de projets open source. Vous pouvez noter les exemples pour nous aider à en améliorer la qualité.