Beispiel 1: c# löst neue Ausnahme aus
static void CopyObject(SampleClass original)
{
if (original == null)
{
throw new System.ArgumentException("Parameter cannot be null", "original");
}
}
Beispiel 2: Ausnahme c# werfen
throw new Exception();
Click to rate this post!
[Total: 0 Average: 0]