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.
6
votes
3
answers
422
views
Should I refactor for DRY?
I'd like to get some input on whether or not to DRY up this code. And if so how to implement it correctly. How do I know when it's worth refactoring?
public class Win32OperatingSystem
{
public W …
7
votes
3
answers
437
views
Next Instance of DRY Refactoring
I'd like some additional assistance on refactoring. This is my latest update for this iteration.
#region WMI Classes
/// <summary>
/// The Win32_OperatingSystem WMI class represents a Windows-based …
6
votes
4
answers
626
views
Class Seperation vs Polymorphism
I'm interested in optimizing my code. Can someone help me understand the best way to trim this code down with DRY methodology?
So I've got these two classes here preforming WMI queries on two separat …
5
votes
2
answers
267
views
Genericizing PropertyValues
This should be the last iteration for this code.
Does this approach make sense or am I heading down the wrong path?
The only thing I can see to make this better is to genericize the GetType methods …