Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ClearHistory()
- {
- //"this" навсякъде за да е ясно, че викаме поле/свойство на този обект
- if (this.CallHistory!=null)
- {
- this.CallHistory.Clear();
- }
- else
- {
- //Това е само примерно изключение с примерно съобщение.
- string message = "Can not clear uninitialized history.";
- throw new ArgumentNullException("CallHistory", message);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement