1 2 3 4
public static class DisplayHelper { [DllImport("user32.dll")] ...
1 2 3 4
public static XmlNode ViewFields { get ...
C# XmlNode creation
Very simple piece of code w...
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 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
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
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...
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
static void Main(string[] args) { FmsTelegramm telegramm = new FmsTelegramm() ...
C# Actions on telegramms
I do have telegramms that d...
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
protected override Dictionary<GloballyFilteredPositionSource, DevicePosition> Reconfigure ( Dictionary<GloballyFilteredPositionSource, DevicePosition> positions) { ...
C# How to break up this long b...
A lot of refactoring finall...
1 2 3 4
public static class MidnightPartitioner { public struct SchedulePartition ...
C# Split DateTime Range Around...
I have this little class ca...
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...
VS08 grants only a maintain...
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
I know there's a better way...
1 2 3 4
using System; using System.Collections.Generic; using System.Text; ...
C# Square Class
A messy class that has grow...
Enables a secondary monitor