1
2
3
4
public static class MidnightPartitioner
    {
        public struct SchedulePartition
...

C# Split DateTime Range Around...

by MRuston, July 01, 2009 14:42, No refactoring, tagged with DateTime, midnight, split

I have this little class ca...

Bac730989e88a593d5f23cfa4d41dc6f Talk
1
2
3
4
/// <summary>
/// Compares the content of two enumerables for equality. Order
/// of elements does NOT matter. Elements may exist multiple
...

C# IEnumerable<> compari...

by mafutrct, June 22, 2009 07:08, 5 refactorings, tagged with IEnumerable, Comparison, Dictionary

VS08 grants only a maintain...

A7c22254d91baa9ca18786a9d46549f0 Talk
1
2
3
4
<select id="<%Response.Write(QuantityId); %>" onmousewheel="return(false);" name="<%Response.Write(QuantityId); %>"
	onchange="javascript:<%Response.Write(ChangeHandler); %>">
	<%
...

C# Asp.Net Dropdown list

by emptyiness12z.blogspot.com, June 08, 2009 19:06, 3 refactorings, tagged with asp.net

I know there's a better way...

Avatar Talk
1
2
3
4
namespace LayoutManager
{
	///<summary>
...

C# Best fit instantiation

by astolk, May 25, 2009 15:25, 1 refactoring

I'd like to have some sugge...

744d3d9435f0694b63cd61cd2b5a9c53 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, 1 refactoring, 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
public class CompositeVolume : Volume
{
	private readonly Random Random = new Random();
...

C# Find random point inside a ...

by mafutrct, May 07, 2009 14:32, 1 refactoring

Volume is an abstract geome...

A7c22254d91baa9ca18786a9d46549f0 Talk
1
2
3
4
    public static void CssAddClass(this Control control, string className)
    { 
        if (control == null)
...

C# ASP.NET CSS classes

by escapetherace, April 25, 2009 07:01, 3 refactorings, tagged with asp.net

Have at it.

F10c1b43385042c785bc6abe8c4b9bd2 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
using System;
using System.Collections.Generic;
using System.Linq;
...

C# Find the list's last satisf...

by mafutrct, April 17, 2009 09:43, 3 refactorings

First of all, i'm new to th...

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

C# C# Socket

by teariok.myopenid.com, April 05, 2009 18:48, 4 refactorings, tagged with sockets

This is a HTTP socket that ...

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

C# Algorithm for zig-zagging o...

by mcintyre321, March 28, 2009 23:35, No refactoring, tagged with set zigzag ordering

I was just writing up a blo...

4908618aea7c32eb0f94d398b57fa28d Talk
1
2
3
4
        private string GetDateString(List<DateTime> dates)
        {
            StringBuilder sb = new StringBuilder();
...

C# Showing several datetimes (...

by mannu.myopenid.com, March 26, 2009 09:34, 4 refactorings

Hi all,

I've made a meth...

Avatar Talk
1
2
3
4
String foo = Request.QueryString["foo"];
if (!String.IsNullOrEmpty(foo))
{
...

C# Looking for a pattern to ha...

by slf, March 24, 2009 14:44, 8 refactorings, tagged with patterns

There is a page in a C# web...

098e5c1a565b47e9860539fbebc3fa98 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
        /// <summary>
        /// Load application plugins from folder
        /// </summary>
...

C# Plugin Loader

by leetreveil.myopenid.com, March 22, 2009 18:23, 1 refactoring, tagged with c# plugin

I'm not having any problems...

Avatar Talk
1
2
3
4
private byte[] ReadFully(Socket p_connection)
{            
    Socket connection = p_connection;
...

C# Method to read Network stre...

by Ice^^Heat, March 21, 2009 14:44, 1 refactoring

This method will read HTTP ...

Cba369265a2a38ef302f5458a355454d 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, 6 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
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

...

C# Testing the Singleton Pattern

by Brandon Joyce, February 09, 2009 17:31, 5 refactorings, tagged with TDD, singleton, pattern

I am doing a step by step e...

Dc45352908dbb9a4c9299c1ffe84ebf2 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
//Solution #1a
//Uses a HttpModule to intercept context.PreRequestHandlerExecute to call ObjectFactory.BuildUp(HttpContext.Current.Handler)

...

C# Presenter injection in Mode...

by dotnetchris, February 05, 2009 04:05, No refactoring, tagged with structuremap, dependency injection, inversion of control, model-view-presenter

I've implemented my own cop...

F0e7c2d0d5d83c928cfcfce66928160e Talk
1
2
3
4
	public class XmlStringSerializer
	{
		static Dictionary<string, Type> types = new Dictionary<string, Type>();
...

C# Polymorphic XML serializer

by mcintyre321, January 22, 2009 01:04, 3 refactorings, tagged with serialization, xml

The default XML serializer ...

4908618aea7c32eb0f94d398b57fa28d Talk