SBSEdition

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg
Showing posts with label C# 3. Show all posts
Showing posts with label C# 3. Show all posts

Monday, January 19, 2009

Refactored: Fluent Test Data Builders Using Generic Extension Methods and Lambda Expressions

Posted on 2:52 PM by Unknown
Working further with the Fluent Test Data Builder I was working on yesterday has led me to refactor what I had, and the result is, I think, even nicer! I've added a new method SetValue, and changed the from getting the Member.Name to getting the PropertyInfo from the Member. The other significant change is that I'm now wrapping the SetLength and SetValue methods in try catch blocks so that I can
Read More
Posted in C# 3, Lambda, Testing | No comments

Saturday, January 17, 2009

Fluent Test Data Builders Using Generic Extension Methods and Lambda Expressions

Posted on 6:33 PM by Unknown
Whilst writing some extension methods this evening to make creating objects in unit tests simpler I found myself writing methods that looked sufficiently similar to each other that I felt the code lacked a little DRYness. The code being written has to output a data extract in a fixed field length formatted text file. As such the length of the formatted fields is very important, so I had created
Read More
Posted in .NET 3.5, C# 3, Lambda, Testing | No comments

Thursday, June 19, 2008

Resharper 4.0 and Lambda Expressions

Posted on 4:52 AM by Unknown
Now I'm fairly new to the wonderful world of Resharper, so barely a day goes by where I don't discover something new about it, or through it. But today I found a feature that just made me want to share about it straight away. Let me set the scene. I'm coding a Lambda expression for use as a predicate and when finished I notice the now familiar little light bulb. Hmmm I thought, now what could
Read More
Posted in .Net Tools, C# 3, Lambda, Resharper | No comments

Tuesday, June 3, 2008

Using TextFieldParser objects and the My library in C# code

Posted on 3:25 PM by Unknown
I read this article on InfoQ (a great site for information for those that don't know it) and saw that there might be some confusion about whether this useful class could be used in C# projects. The answer of course is yes. Just reference the Microsoft.VisualBasic dll in your project and away you go.The My library is a little different it does a whole bunch of different things, providing both new
Read More
Posted in C# 3 | No comments

Sunday, May 18, 2008

Extension Methods - My new best friend*

Posted on 9:28 AM by Unknown
No that doesn't mean that I'm going to be [ab]using extension methods everywhere - though I suspect that extension methods could become the new singleton. That said I think that I am really starting to get them. Here's an example. Last night I'm doing some coding and I want to get some objects that I have written to serialise nicely to Xml. Now I don't want to give them public constructors as
Read More
Posted in C# 3 | No comments
Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • New blog
    I don't blog often, but when I do it's now at http://blog.semeosis.com. Here I've written about some of the things I've look...
  • Would Google Adsense Ever Ban You?
    Adsense publishing is such a lucrative business for so many webmasters. It is a business with a simple strategical approach; you make money ...
  • Zakat (Charity)
    One of the most important principles of Islam is that all things belong to God, and that wealth is therefore held by human beings in trust. ...
  • There’s magic in the air at Apple
    Cupertino, C A — There’s magic in the air at Apple. Lots and lots of magic. In fact, with Apple beating the word ”magic” to death in press ...
  • Marriage in Islam (by Dr. Ahmad Shafaat (1984)
    From a legal point of view Islam views marriage as an 'aqd or contract. Like any other contract the marriage contract requires full and ...
  • How Google's Panda Update Changed SEO Best Practices Forever - Whiteboard Friday
    Posted by Aaron Wheeler It's here! Google has released Panda update 2.2 , just as Matt Cutts said they would at SMX Advanced here in Sea...
  • Convert Facebook Newsfeed into Excel Spreadsheet
    Here is an excellent application for Facebook . One of the best Facebook applications. Actually with this application you look more profes...
  • Sony implicates Anonymous in security breach
    The company has written a letter to Congress saying the data theft came as it was defending itself against cyber-attacks Investigators found...
  • Orang yang terlanjur bersumpah dengan Laata dan ‘Uzzaa
    Orang yang terlanjur bersumpah dengan Laata dan ‘Uzzaa Dari Abu Hurairah, ia berkata, Rasulullah SAW bersabda, “Barangsiapa diantara kalian ...
  • TAREKAT NAQSYABANDI
    Oleh : Zubaidi Makalah-makalah SeminarTerbentuknya tarekat naqsyabandi melalui beberapa fase. Fase pertama, Pra Sejarah berdirinya tarekat N...

Categories

  • .Net
  • .NET 3.5
  • .Net Tools
  • About Adsense
  • Agile
  • ALT.NET
  • Anti-Virus
  • Article
  • ASP.NET MVC
  • C# 3
  • Cara Pasang
  • CI Factory
  • Computer
  • Continuous Integration
  • Courseware
  • DI/IOC
  • Download Games
  • Download Karaoke
  • Download software
  • Download template
  • Download Template
  • Exchange Link
  • Google
  • Hadits Nabi
  • Hiring
  • IEEE
  • IIS 7
  • Info electronic
  • Lambda
  • Lean
  • Linux
  • MbUnit
  • Messages
  • MS Exchange 2003
  • Mutiara
  • Navigation
  • News
  • NHibernate
  • NxtGenUG
  • Other
  • Practices and Patterns
  • Qurdist
  • Resharper
  • Scrum
  • Security
  • Seo
  • Small Business Server
  • SQL Server 2008
  • Testing
  • TFS
  • Tips
  • Trick
  • Tutor
  • Ubuntu
  • UML
  • Verifying
  • Virtual Instrument
  • Virtual PC
  • Virtual Server
  • Visual Studio 2010
  • wcf
  • Web
  • Windsor

Blog Archive

  • ▼  2012 (1)
    • ▼  August (1)
      • New blog
  • ►  2011 (71)
    • ►  July (1)
    • ►  June (43)
    • ►  May (20)
    • ►  April (5)
    • ►  March (2)
  • ►  2010 (113)
    • ►  December (22)
    • ►  November (4)
    • ►  September (8)
    • ►  July (7)
    • ►  May (3)
    • ►  April (11)
    • ►  March (35)
    • ►  February (5)
    • ►  January (18)
  • ►  2009 (143)
    • ►  December (3)
    • ►  October (3)
    • ►  September (12)
    • ►  August (14)
    • ►  July (23)
    • ►  June (1)
    • ►  May (18)
    • ►  April (23)
    • ►  March (36)
    • ►  February (5)
    • ►  January (5)
  • ►  2008 (30)
    • ►  December (1)
    • ►  November (4)
    • ►  October (2)
    • ►  September (5)
    • ►  August (5)
    • ►  July (3)
    • ►  June (6)
    • ►  May (2)
    • ►  April (1)
    • ►  March (1)
Powered by Blogger.

About Me

Unknown
View my complete profile