1
2
3
4
public class TelnetParser
    {
        public event EventHandler<TelnetCommandEventArgs> Command;
...

C# Created a Telnet Parser wit...

by Killersponge, February 02, 2010 12:01, 1 refactoring, tagged with Telnet, TDD, C#

So I've was just using TDD ...

B20991026b45ee0d77e9bbb2b6776097 Talk
1
2
3
4
private static bool SetFolderBasedOnFirstStatus(PurchaseOrder po)
{
    bool documentFinished = false;
...

C# Two methods, two enums.

by mrgrande.livejournal.com, January 22, 2010 20:24, 1 refactoring, tagged with C#, enum

I have these two very simil...

Avatar Talk
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

by tmeers.myopenid.com, January 08, 2010 03:03, 1 refactoring, tagged with C#, gdi+

I'm really trying to nail o...

Avatar Talk
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...

Avatar Talk
1
2
3
4
//
// frmMain
//
...

C# FlashCard Program Using SQLite

by etherealmonkey.myopenid.com, October 31, 2009 18:47, 2 refactorings, tagged with C#, sqlite

I'm a newb, so please be ni...

Avatar Talk
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...

F0e7c2d0d5d83c928cfcfce66928160e Talk
1
2
3
4
 public void ChangeCommuteItems(int startAtRecord)
        {
            using (DataContext context = new DataContext())
...

C# Improve Batch Processing fo...

by thekevdog.myopenid.com, August 27, 2009 13:58, 1 refactoring, tagged with C#, batch, LINQ

I need to do a bunch of dat...

Avatar Talk
1
2
3
4
public ActionResult Add(FormCollection values)
        {
            var keywordRepository = new DataRepository<Keyword>();
...

C# Form Add

by alex, August 24, 2009 11:08, 5 refactorings, tagged with C#, asp.net-mvc

I have this method wich is ...

Avatar Talk
1
2
3
/// <summary>
...

C# CircularLinkedList

by navaneethkn, August 14, 2009 08:45, 4 refactorings, tagged with C#, linked-list, algorithms

Here is my circular linked ...

B2522e761028dd3af7fa39c744adefc3 Talk
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...

Avatar Talk
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...

03ccba009c26488991d9ec669e3fccf6 Talk
1
2
3
4
using System;
using System.Collections.Generic;
using System.Linq;
...

C# Cached IEnumerable<T>

by Charles Strahan, July 06, 2009 15:15, 1 refactoring, tagged with speed, C#, IEnumerable

Hello,

I created a this ...

A1e6f320dcdb6a0afd7fd19a1e5f932e Talk
1
2
3
4
using System;
using System.Collections.Generic;
using System.Text;
...

C# Square Class

by emptyiness12z.blogspot.com, May 24, 2009 09:48, 2 refactorings, tagged with C#

A messy class that has grow...

Avatar Talk
1
2
3
using System.Collections.Generic;
using System.IO;
...

C# Gedcom Reader

by crash893.myopenid.com, May 14, 2009 19:42, 2 refactorings, tagged with gedcom, reader, C#, class

Created this reader class f...

Avatar Talk
1
2
3
4
public IList<IStatus> RepsonseHandler(string responseText)
{
	IList<IStatus> Output = null;
...

C# Generic Lists of Different ...

by mkoby, May 12, 2009 20:25, 2 refactorings, tagged with C#, generics

I have some code for a Twit...

Ef9a110e6f84d3ebf3d4672ad090a1de Talk
1
2
3
4
UI Layer

        private void SaveEquipment()
...

C# Help me Refactor My Classes...

by zsysop.myopenid.com, April 18, 2009 18:14, 3 refactorings, tagged with C#

Please help me refactor thi...

Eaeb97b81092455b2b39fd74a04304ef Talk
1
2
3
4
public interface IName
{
    string getLastName();
...

C# Refactoring Help Needed

by zsysop.myopenid.com, March 24, 2009 00:41, 2 refactorings, tagged with asp.net, C#

Please help me make this co...

Eaeb97b81092455b2b39fd74a04304ef Talk
1
2
3
4
    protected void btnUpload_Click(object sender, EventArgs e)
    {
        try
...

C# Import File

by zsysop.myopenid.com, March 17, 2009 21:25, 1 refactoring, tagged with C#, asp.net

How would you refactor this?

Eaeb97b81092455b2b39fd74a04304ef Talk
1
2
3
4
public string CleanHtml(object Html) {
	var s = Html.ToString();
	var b = new StringBuilder();
...

C# C# HTML Encoding

by GateKiller, March 05, 2009 15:08, 7 refactorings, tagged with C#, html, sanitize

This is my own attempt at w...

98c852e2d9b26249745ea92c72964d3f Talk
1
2
3
4
    /// <summary>
    /// This function actually alters the text and makes the necessary changes.
    /// </summary>
...

C# HTML Reprocessing Code

by nesteruk, February 23, 2009 15:07, 2 refactorings, tagged with html, parse, C#

The code below is evil. It'...

F01cbd2238e2a78e4c43fa596f51d6a1 Talk
1
2
3
4
public class MvNetDB
    {
        protected mvAccount _account = null;
...

C# Help me with ineritance or ...

by mikeroosa.myopenid.com, February 05, 2009 13:27, 3 refactorings, tagged with C#, dry, database

I'm new to C# and working o...

56982d0ab4f8fdd82cf65d399f25b774 Talk
1
2
3
4
  List<Document> documents = documentLayer.GetDocuments(username);
  List<Document> filteredDocuments = new List<Document>();

...

C# Filterting a List<> w...

by mantis7.myopenid.com, November 25, 2008 16:33, 2 refactorings, tagged with regular expression, C#, List, filter

Have the below code which f...

Avatar Talk
1
2
3
4
public static class DirectoryInfoExtensions
{
    public static void CopyTo(this String Source, String Destination, Boolean Overwrite)
...

C# DirectoryInfo.CopyTo

by GateKiller, November 11, 2008 17:10, 3 refactorings, tagged with C#, .net, directoryinfo, copyto

Because the .NET Framework ...

98c852e2d9b26249745ea92c72964d3f Talk
1
2
3
DateTime todayUTC = DateTime.Today.ToUniversalTime();
DateTime currentTimeUTC = todayUTC;
...

C# Generating a list of time v...

by fezmonkey, October 16, 2008 22:06, 3 refactorings, tagged with date, time, C#

I need to generate a list o...

3a3742ddae6261eb4c1d24ed94e6c749 Talk
1
2
3
4
public static void Capitalize()
{
    TextInfo oTextInfo = CultureInfo.CurrentCulture.TextInfo;
...

C# Capitalize directory name w...

by Moonshield, October 02, 2008 01:31, No refactoring, tagged with C#, LINQ, Capitalize, Directory

I wrote a method to capital...

72f36daa501cf8f5bb861210edd9232d Talk