When I'm writing a class, most methods fall into two categories:
Take this example: public class Library
{
private static Book findBook(List<Book> books, string title)
{
// code goes here
}
}If an instance of library's state ever gets screwed up, and I'm trying to figure out why, I can rule out findBook as the culprit, just from its signature.I try to communicate as much as I can with a method or function's signature, and this is an excellent way to do that. |
Private Static Method in a Class
Programmers Visited
Topics
- Active Directory Services (1)
- AJAX (8)
- ASP.NET (11)
- ASP.NET MVC (1)
- Assembly (4)
- CSS (1)
- Deployment (1)
- Design Patterns (54)
- General (1)
- Interview (1)
- OOPS (2)
- SQL Server (2)
- WCF (1)
- Windows Service (2)
- WPF (2)