1 2 3 4
decimal total = 0.00m; char Base; ...
C# HELP: How to use a try-catc...
by taikamiya.myopenid.com,
June 29, 2010 00:46,
1 refactoring
1 2 3 4
Type type1 = SomeMethodThatReturnsAType(); Type type2 = SomeOtherMethodThatReturnsAType(); ...
C# C# Dynamic casting?
by https://www.google.com/accounts/o8/id?id=AItOawlUTCKCTimaUNX4sQ5LTqV5Mz8q1DapzIQ,
June 30, 2010 20:00,
1 refactoring, tagged with c# reflection
How can I make this work?
1 2 3
<?xml version="1.0"?> <Node1 ...
C# Formatting XML
by JimMcKeeth,
June 18, 2010 01:46,
2 refactorings, tagged with xml, simplicity, performance, formatting
I have an unformatted XML s...
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 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.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.Text; ...
C# Firts time refactoring
Hello guys,
I working in a...
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
//============================================================================================================ /// A pathfinding matrix. //============================================================================================================ ...
1 2 3 4
public static class DisplayHelper { [DllImport("user32.dll")] ...
C# Extend my Windows desktop o...
Enables a secondary monitor
1 2 3 4
// Stored procedure: IsItUnique
CREATE PROCEDURE [dbo].[IsItUnique]
...
C# SQL Server - Similarity Score
First of all I apologize fo...
1 2 3 4
public static class Hebrew { static Dictionary<char, char> mapper = CombineMappers( ...
C# Toggle Hebrew Chars
Many times when having a He...
1 2 3 4
public partial class Attivazioni { public byte[] CodiceRichiesta ...
C# Properties surrounding arra...
Is there a better way to su...
1 2 3 4
public static XmlNode ViewFields { get ...
C# XmlNode creation
Very simple piece of code w...
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
public static string ToFormattedList<T>(this HtmlHelper helper, IList<T> objectList, ListType listType, Func<T, string> valueReturn) { ...
C# ASP.Net MVC HTML List helper
by czemuja.myopenid.com,
January 25, 2010 23:55,
1 refactoring
I wanted to display list fr...
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 Func<TDbTable, bool> GetWhereClauseForAll<TDbTable, TEntity>( this List<TEntity> objects, Func<TEntity, Func<TDbTable, bool>> comparison) ...
C# Generic Linq where clause O...
Suddenly found myself havin...
1 2 3 4
public string Transform(string cssPath, string cssContent) { return Regex.Replace(cssContent, @"url\((?<url>.*?)\)", ...
C# Modify relative urls in a c...
This function changes all U...
1 2
int count = 0; Dictionary<string,int> headers = line.Split(',').ToDictionary(y => y, y => count++);
C# Comma separated string to D...
Anyone up for the challenge...
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...
I don't know how to insert ...