.Net Tips – tools to help you find a new Guid string
Ever needed to get your hands on a new Guid without having to start up a new project and all of that? Well, there are two easy ways to go about it: 1. use LinqPad LinqPad is a FREE code snippet editor for C#, developed by Joe Albahari (one of the authors of the C# …
.Net Tips – tools to help you find a new Guid string Read More »
Bingo.Net Public Beta!
After more than a month’s work we’re finally in a position to put Bingo.Net into public beta!! Come join in the fun at: http://apps.facebook.com/ilovebingo Go on, try it out, let us know what you think, your feedbacks are much appreciated! :-D Oh, and if you see any bugs in the game, be sure to let …
.Net Tips – use DebuggerStepThrough attribute
When debugging your application, don’t you just get annoyed that pressing F11 keep taking you into the get method of the properties (auto-properties excluded!) passed into the method rather than the method you want to step into? I use auto-properties wherever possible because they’re syntactically cleaner and have less maintenance overhead, and I have the …
.Net Tips – using configSource or file attribute to externalize config sections
There’s a little known attribute which was introduced in the .Net framework 2.0 called configSource, which allows you to externalize sections of the configuration file. It works just like the optional file attribute found on the appSettings element: <appSettings file = “relative file name” /> but can be added to any configuration section to specify …
.Net Tips – using configSource or file attribute to externalize config sections Read More »
Functional programming with Linq – Enumerable.Range
In my Learning F# posts you probably saw how you can generate an int array like this: this returns 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. This is pretty cool, and fortunately, you have something very similarly in C# with Enumerable.Range which you can use by supplying a starting number and a …
Functional programming with Linq – Enumerable.Range Read More »
Rx framework – IObservable<T>.Retry
As Wes Dyer put very elegantly: Retry is to Repeat as Catch is to Concat Ok ok, I know that’s not an exact quote, but I’m sure this is what he intended to say in the first instance :-P Anyhow, the IObservable<T>.Retry method has all the same features of its Repeat sister method, in that: …
Rx framework – IObservable<T>.Repeat
Having looked at a number of extension methods in Rx which allows you to combine two observable collections in some way, namely: Zip Merge CombineLatest Concat Catch OnErrorResumeLast There are also extension methods which allow you to repeatedly subscribe to the same observable collection, the suitably name IObservable<T>.Repeat method. If the repeated observable collection is …