Browse by Tags

All Tags » C# (RSS)

LINQ to XML : My Version of LINQ Extension Method for IEnumerable to return Random Single Selection by REA_ANDREW

I was in the middle of making so nice templates in order to generate some test data.  I wanted to create Firstnames, Lastnames and Titles but also have them specialize by sex.  So I have methods including GetMaleFirstName , GetFemaleFirstName...
Filed under: , ,

.NET, Adobe Flash and Cross Domain Communication -How To AND How Not to LOL! by REA_ANDREW

  "Is SilverLight going to use Cross Domain Poilicies?"   I hope no one is thinking, "FLASH?!?! why not Silverlight!!"    If so I apologise lol, but a project I am working on, the client has clearly specified...

ASP.NET MVC "Pager" HTML Helper by REA_ANDREW

So I am building my own custom blog using the ASP.NET MVC Framework, and I have been working on the paging aspect.  I will be going into more detail how i achieved this but for now, I am publishing a HtmlHelper I have made which has helped me, believe...

We should have a Shuffle function for the Array base class - like Java by REA_ANDREW

This is only my opinion of course and I am, like always, braced for someone to come along and say "There is one!" lol .  But at present I am not aware if there is one, so... I am just writing to display my attempt at one.  I think...

A Simple MVC Preview 3 Contact Form, Custom HtmlHelper and Model Example by REA_ANDREW

I have just recently designed a site for a client and decided to use MVC for it.  I think above all the best thing I enjoy about it, is the clean markup that is outputted.  Of course I also have great administration for the work and effort that...

Bad Word Filter With Regular Expressions by REA_ANDREW

I have seen many versions of these and a lot of the time people are expecting that a bad word would be written complete, I.e. BADWORD.  Sometimes they overlook the fact that others get hold of this rule and simply bypass by adding symbols in between...
Filed under: , ,

Delegate Chaining by REA_ANDREW

After a few questions I have taken part in, I have recently gone further into delegate chaining.  I have to say that I am, like most others things in C#, really impressed.  It kind of adds a horde of functionality to the facade design pattern...
Filed under: ,

NUnit Testing and Custom .NET Configuration File by REA_ANDREW

I got hit with this problem, not so long ago.  I was testing a project I was making and in some of the tests this involved the retrieval of settings from the configuration file.  I created an App.config file for the assembly, and went onto to...
Filed under: ,

Oh the joy of Semaphore with ThreadPool by REA_ANDREW

I recently created a small routine which would repeat a process using different accounts.  To speed up the process I then used a ThreadPool so I could get multiple process running at the same time to reduce the amount of time the complete process...

"Organize Usings" by REA_ANDREW

I thought I would just post a little blurb on this, as I really appreciate its simple but effective function.  Remove and Sort, Remove and Sort!! lol, for anyone who has not used this what it does is removes and sorts alphabetically all of your using...
Filed under:
More Posts Next page »