Stories recently tagged with 'C#' Subscribe to this feed

Creating a monster: The DataTable meets dynamic (blog.rag.no)

submitted by runegrirunegri(75) 12 hours, 53 minutes ago

In this article I combine the good old DataTable with the new fancy dynamic types found in .Net 4. The result is a terrible monster, but a fun one! read more...

add a comment | category: | Views: 4

tags: another

Top 5 Common programming mistakes .NET developers must avoid !! (amazedsaint.blogspot.com)

submitted by amazedsaintamazedsaint(50) 19 hours, 14 minutes ago

Top 5 Common programming mistakes .NET developers must avoid !! Must read for all .net programmers read more...

add a comment | category: | Views: 18

tags: another

does MEF apply the SOA paradigm? (blogs.microsoft.co.il)

submitted by bnayaebnayae(105) 20 hours, 26 minutes ago

in this post I'm going to argue that the Manage Extensibility Framework (MEF), is actually applying to the 4 tenet of Service Orientation Architecture (SOA), therefore MEF is actually, in-process implementation of the SOA paradigm. read more...

add a comment | category: | Views: 1

tags: another

.NET CF Performance Best Practices (jsprunger.com)

submitted by daymandayman(35) 1 day, 1 hour ago

The impact of performance is much more readily apparent in .NET Compact Framework applications. The mobile devices commonly have a CPU that is 10 times slower than your desktop CPU, and possibly up to 100 times less RAM than a desktop or server. In Agile or XP development, the mantra is often to ignore performance considerations until necessary – I don’t think you can apply that to .NET CF... read more...

add a comment | category: | Views: 4

tags: another

CSS Tidy Up – Tidy up all your css online or offline (www.hieu.co.uk)

submitted by hieuukhieuuk(170) 1 day, 1 hour ago

This app does extractly what it named. You throw in a mess up, non-formatted CSS, choose a format you want and click "Do the magic" button. It will return you a proccessed CSS in your selected format. Fast and Simple. The utility right now support 4 different CSS formats. You could do it online or download the windows app for this. It's also include the source code for the solution (Core, Win App, Web App) in C# WPF an ASP.net. read more...

add a comment | category: | Views: 2

tags: another

Custom Transactions - C# (codecube.net)

submitted by joelmartinezjoelmartinez(5) 1 day, 8 hours ago

... We needed a way to have multiple transaction scopes, each with different conditions of success or failure. I started thinking about how to accomplish this, and decided to write my own implementation which mimics the TransactionScope, but lets me control things a bit closer. So I came up with a class which can be used like this ... read more...

add a comment | category: | Views: 4

tags: another

Generating Structured Text with StringTemplate (www.codecapers.com)

submitted by mceranskimceranski(115) 1 day, 9 hours ago

StringTemplate is a powerful tool that can be used to generate source code, web pages, emails, or any other formatted text output. Although StringTemplate was originally written in Java it has been ported to C#, Python and Ruby. My first encounter with StringTemplate was a few years ago when I needed to build a complex deployment script for setting up new SQL Server instances. The script needed to configure operators, alerts, SQL mail and also create a few basic jobs. The most important requirement was that the template could be easily changed without recompiling any code or needing any advanced knowledge of programming. Luckily, StringTemplate meets all these requirements. read more...

add a comment | category: | Views: 2

tags: another

BlockingCollection and IProducerConsumerCollection (www.codethinked.com)

submitted by mosessaurmosessaur(5050) 1 day, 11 hours ago

BlockingCollection is an incredibly easy way to have a few threads producing data and have numerous other threads picking up and processing that same data. read more...

add a comment | category: | Views: 5

tags: another

C# 4.0 New Features, Videos, Articles and Books (www.devcurry.com)

published 1 day, 10 hours ago, submitted by mopenmopen(1034) 1 day, 14 hours ago

I was collecting some learning material on C# 4.0 and stumbled across some useful videos, articles and documents available on C# 4.0. I am just listing a few of them. Check them out! read more...

add a comment | category: | Views: 283

tags: another

Detecting User Inactivity (C#) (www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(2795) 2 days, 11 hours ago

Some software, such as backup utilities, can use a large proportion of processor time and other resources. Often the user is given the option to only run such processes when the computer is not in use. This requires the detection of user inactivity. read more...

add a comment | category: | Views: 7

tags: another

Writing object to object mapper: first implementations (weblogs.asp.net)

submitted by gpeipmangpeipman(1830) 2 days, 15 hours ago

I wrote some object to object mapping code and introduced it in some of my previous postings about performance. As I received 22x performance raise when trying out different mapping methods it is now time to make my code nice. In this posting I will show you how I organized my code to classes. Yes, you can use my classes in your work if you like. read more...

add a comment | category: | Views: 5

tags: another

Be careful with that StackTrace (www.smelser.net)

submitted by JoeGeekyJoeGeeky(65) 2 days, 15 hours ago

Knowing this saved me a ton of time debugging issues. read more...

add a comment | category: | Views: 5

tags: another

JSON Performance in .NET with Binary Data (testing...) (james.newtonking.com)

published 1 day, 8 hours ago, submitted by JamesNKJamesNK(2955) 2 days, 19 hours ago

Binary data and text file formats (JSON, XML) don’t tend get along. To be included in JSON or XML binary data has to be encode into a text friendly format, generally base64, which creates overhead both in the time spent encoding/decoding binary, and the extra size of the text encoded data in the message. In our test we’ll compare serializing a message with binary data using common .NET serialization methods and compare the result. read more...

add a comment | category: | Views: 186

tags: another

Syntactic Sugar for C# (prettycode.org)

submitted by deverdever(335) 3 days, 17 hours ago

I have a small list of demands for C# that comes only out of love. Hell, they even make sense. Can we get these supported in C# 4.0, or what? Unlikely, but ideally. read more...

add a comment | category: | Views: 8

tags: another

Performance: Using LCG to copy property values of two objects (weblogs.asp.net)

submitted by gpeipmangpeipman(1830) 4 days, 9 hours ago

Today I gave last performance boost to my property values copying mechanism. I would like to thank my readers Ron and David to remind me Lightweight Code Generation (LCG) and pointing me out aussie bloke blog entry Generic copy object using Lightweight Code Generation. In this posting I will show you last performance boost and put down a summary about my experiment this far. read more...

add a comment | category: | Views: 11

tags: another

Painless Caching, Memoization for .NET (explodingcoder.com)

submitted by spoulsonspoulson(255) 4 days, 9 hours ago

When searching for .NET discussions of I-don't-even-remember, I somehow came across Dustin Campbell's blog post about automatic memoization with C#. I instantly remembered first reading about this topic in Higher Order Perl, which at the time introduced me to this handy technique using the delegate pattern. After looking over Dustin's code, I liked the simplicity of wrapping any delegate with a single method call. This makes for an academic discussion, but I thought this could be much more practical if we abstracted the concept a bit more. read more...

add a comment | category: | Views: 29

tags: another