Advertisement
stefanpu

ClearHistory

Mar 15th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1.  public void ClearHistory()
  2.         {
  3.             //"this" навсякъде за да е ясно, че викаме поле/свойство на този обект
  4.             if (this.CallHistory!=null)
  5.             {
  6.                 this.CallHistory.Clear();
  7.             }
  8.             else
  9.             {
  10.                 //Това е само примерно изключение с примерно съобщение.
  11.                 string message = "Can not clear uninitialized history.";
  12.                 throw new ArgumentNullException("CallHistory", message);
  13.             }
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement