1 2 3 4
public class TelnetParser { public event EventHandler<TelnetCommandEventArgs> Command; ...
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
This is a console logging f...
1 2 3 4
public static class ObjectToXmlConverter { #region Class Methods ...
C# XML Object Serializer to XS...
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...
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...
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...
1 2 3 4
public interface IName { string getLastName(); ...
C# Refactoring Help Needed
Please help me make this co...
1 2 3 4
protected void btnUpload_Click(object sender, EventArgs e) { try ...
C# Import File
How would you refactor this?
1 2 3 4
public string CleanHtml(object Html) { var s = Html.ToString(); var b = new StringBuilder(); ...
C# C# HTML Encoding
This is my own attempt at w...
1 2 3 4
/// <summary> /// This function actually alters the text and makes the necessary changes. /// </summary> ...
C# HTML Reprocessing Code
The code below is evil. It'...
1 2 3 4
public class MvNetDB { protected mvAccount _account = null; ...
C# Help me with ineritance or ...
I'm new to C# and working o...
1 2 3 4
List<Document> documents = documentLayer.GetDocuments(username);
List<Document> filteredDocuments = new List<Document>();
...
C# Filterting a List<> w...
Have the below code which f...
1 2 3 4
public static class DirectoryInfoExtensions { public static void CopyTo(this String Source, String Destination, Boolean Overwrite) ...
C# DirectoryInfo.CopyTo
Because the .NET Framework ...
1 2 3
DateTime todayUTC = DateTime.Today.ToUniversalTime(); DateTime currentTimeUTC = todayUTC; ...
C# Generating a list of time v...
I need to generate a list o...
1 2 3 4
public static void Capitalize() { TextInfo oTextInfo = CultureInfo.CurrentCulture.TextInfo; ...
C# Capitalize directory name w...
I wrote a method to capital...
So I've was just using TDD ...