1 2 3 4
using System; using System.Collections.Generic; using System.Linq; ...
1 2 3 4
public class EngGetCalculatedTaskField { private static TaskMaintenanceDataDataContext engTaskCtx { get; set; } ...
C# How can i use generic class...
i want to use generic cla...
1 2 3 4
public void LoadById(string SearchItem) { var myTechnicTasks = engTaskCtx.Tasks.Where(task => task.MyTechnicReference.StartsWith(SearchItem)).Select(task => new MyTask() ...
C# How can i shorter my linq c...
hi; i try to run my codes. ...
1 2 3 4
private static HumanResource CompressTimesheetItems(HumanResource employee) { List<TimesheetItemObject> CompressedTimesheetItems = new List<TimesheetItemObject>(); ...
C# Merging similar objects
Our reporting program uses ...
1 2 3 4
public class LoadDataset { public DataSet GetAllData(string sp) ...
C# How can i load dataset via ...
i try to write a winform ap...
1 2 3 4
using System; using System.Collections.Generic; using System.Linq; ...
C# How can i refactor theese c...
How can i refactor theese c...
1 2 3 4
using System; using System.Collections.Generic; using System.Linq; ...
C# How can i SRP princible in ...
by programmerist,
May 30, 2010 10:02,
2 refactorings, tagged with C#, C# asp.net-mvc, .net, oop, design
i try to calculate triangle...
1 2 3 4
using System; using System.Collections.Generic; using System.ComponentModel; ...
C# New to refactoring: is my d...
by sebastianlarsson.myopenid.com,
May 08, 2010 19:32,
3 refactorings, tagged with design, refactoring, C#, gdi+, threads
Hi guys,
I am currently ...
1 2 3 4
public class GenoTipController { public _Company GenerateCompany(DataModelType modeltype) ...
C# GenoTipController must pro...
GenoTipController must pro...
1 2 3 4
public class TelnetParser { public event EventHandler<TelnetCommandEventArgs> Command; ...
C# Created a Telnet Parser wit...
So I've was just using TDD ...
1 2 3 4
private static bool SetFolderBasedOnFirstStatus(PurchaseOrder po) { bool documentFinished = false; ...
C# Two methods, two enums.
I have these two very simil...
1 2 3 4
public static byte[] ResizeImageFile(byte[] imageFile, int targetSize) { using (System.Drawing.Image oldImage = System.Drawing.Image.FromStream(new MemoryStream(imageFile))) ...
C# Image Resizing
I'm really trying to nail o...
1 2 3 4
private static void Log(object message, MessageType type) { string str = message.ToString(); ...
C# Line splitting optimization
by xeon06.myopenid.com,
December 07, 2009 20:59,
3 refactorings, tagged with optimize, speed, C#, xna, lines
This is a console logging f...
1 2 3 4
public static class ObjectToXmlConverter { #region Class Methods ...
C# XML Object Serializer to XS...
by dotnetchris,
September 25, 2009 19:20,
2 refactorings, tagged with C#, xml, serialization, xslt, transform
I'm using XSLT for document...
1 2 3 4
public void ChangeCommuteItems(int startAtRecord) { using (DataContext context = new DataContext()) ...
C# Improve Batch Processing fo...
I need to do a bunch of dat...
1 2 3 4
public ActionResult Add(FormCollection values) { var keywordRepository = new DataRepository<Keyword>(); ...
C# Form Add
I have this method wich is ...
1 2 3 4
class Program
{
...
C# .Net Console Application H...
by zsysopx.myopenid.com,
August 13, 2009 16:01,
3 refactorings, tagged with .net, C#, Console Application
Hi all i would like someone...
1 2 3 4
public class OpenTableCommandBuilder : CommandStringBuilder { string template = @"Open Table {FileName} {TableName} ...
C# Refactor string command bui...
by madmanwoo.myopenid.com,
July 10, 2009 03:59,
1 refactoring, tagged with C#, builder, string building
I was wondering if anyone c...
1 2 3 4
using System; using System.Collections.Generic; using System.Linq; ...
C# Cached IEnumerable<T>
Hello,
I created a this ...
1 2 3 4
using System; using System.Collections.Generic; using System.Text; ...
C# Square Class
A messy class that has grow...
1 2 3
using System.Collections.Generic; using System.IO; ...
C# Gedcom Reader
Created this reader class f...
1 2 3 4
public IList<IStatus> RepsonseHandler(string responseText) { IList<IStatus> Output = null; ...
C# Generic Lists of Different ...
I have some code for a Twit...
1 2 3 4
UI Layer
private void SaveEquipment()
...
C# Help me Refactor My Classes...
Please help me refactor thi...
The idea behind this helper...