Autor Beitrag
shil
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 143

Windows Xp
C#
BeitragVerfasst: Fr 15.12.06 16:13 
kennt jmd zufällig eine liste, in der die bereits vorhandenen exeptions aufgelistet sind?
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Fr 15.12.06 16:44 
Was meinst Du mit "bereits vorhanden"? :gruebel:

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
shil Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 143

Windows Xp
C#
BeitragVerfasst: Fr 15.12.06 16:57 
schon gut. hatte da was falsch verstanden xD
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: Sa 16.12.06 11:56 
Reflector öffnen und die nicht gerade kurze Liste von "System.Exception -> Derived Types" anschauen ;) .
Robert_G
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416


Delphi32 (D2005 PE); Chrome/C# (VS2003 E/A, VS2005)
BeitragVerfasst: Sa 23.12.06 10:54 
Oder so (alle Exceptions aus mscorelib) :mrgreen:
ausblenden C#-Quelltext
1:
2:
3:
4:
Type exception = typeof(exception);
foreach(Type exType in typeof(int).Assembly.GetExportedTypes()) do
  if exType.IsSubClassOf(exception) then
    Console.WriteLine(exType);