Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 17th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Detect Exception thrown by a method in referenced DLL (.Net)
  2. public void Add(string key, object obj)
  3. {
  4. ..
  5. //if the Foo property from obj is null then
  6. throw new Exception("Foo property is null or empty")
  7. ..
  8. }