Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
C# is a multi-paradigm, managed, garbage-collected, object-oriented programming language created by Microsoft in conjunction with the .NET platform. Use this tag for questions related to C#. In case a specific version of the framework is used, you could also include that tag; for instance .net-2.0.
7
votes
Accepted
Stack Overflow like pager
It's a little wonky to have a
public int PageNumbersToShow { get; set; }
Then do all dis bizness in the toString() method
if (TotalPages <= PageNumbersToShow) {
for (int i = 1; i <= TotalPage …
2
votes
How do I improve this logging mechanism?
You're doing ugly things here. The "new and simpler class" tightly couples you to SQL and persistence concerns. A dictionary of String String is an implementation concern, and more likely the basis fo …
2
votes
Form to create new students or view existing student information
One could also argue that you're mixing a lot of presentation code with business logic (creation/modification of data). Don't do that. Separate presentation from content.
Have the form call a ViewMod …