Posts Tagged ‘C# Programming’

GetPropertyName via reflection

April 5, 2013

Reflection is very usefull, and most of the time it needed horrible (but precious!) code to write. No matter about class, helpers, static methods, extension methods, or whatever, that code was awful.

Because every developer is lazy, I was looking for a elegant way to use reflection and Expression, and found this ReflectionUtility that was the right one for me: How to get C# property names without magic strings – static reflection.

You can call it this way:
ReflectionUtility.GetPropertyName(() => myOrder.CustomerCode);

This post worth a read: How to get C# property names without magic strings – static reflection

😉

un omaggio inatteso: ebook ‘TFS 2012 Starter’ by Packpub

December 23, 2012

Una bella sorpresa, Packpub mi ha fatto un omaggio inatteso e veramente bello.

TFS2012Starter_coverMi ha dotato di una copia del libro Team Foundation Server 2012 Starter .
L’ho appena ricevuto e lo leggerò nei prossimi giorni, quindi aspettatevi una recensione non appena l’avrò finito;
vi renderò così partecipi di questo regalo … anzi di più, condividerò questo regalo con voi.
Nel frattempo, per chi non lo conoscesse, vi descrivo in 2-parole-2 cosa è Microsoft TFS.

Il TFS, come lo chiamerete amichevolmente, è un applicativo che permette di gestire lo sviluppo di progetti software;
TFS integra e fornisce le funzionalità di diversi applicativi in una, perdonatemi la semplificazione, unica interfaccia, inoltre è integrato molto bene con Visual Studio;
alcune fra le più importanti sono:
– source control
– task scheduling
– bug tracking
ma ci sono anche molti report che danno una rappresentazione di sintetica e di immediato utilizzo sullo stato corrente e futuro del progetto.

Per il momento mi fermo qui, non voglio rovinarvi la sorpresa. 😉

A breve pubblicherò la recensione del libro Team Foundation Server 2012 Starter . 🙂

Technorati tags: TFS

Patterns Patterns Patterns

December 3, 2012

Design Patterns … they are already well known by may developers … but junior ones may not.
In this video Venkat Subramaniam show some simple patterns Abstract Factory, Cascade, Behaviour, and others … and tell some tips about writing code in unit tests, a good way for expected excpetions.

Venkat Subramaniam – Design Patterns for .NET Programmers from NDCOslo on Vimeo.

source: Design Patterns for .NET Programmers

Technorati tags: Pattern

XAML: blend behavious and markup extensions

November 18, 2012

A book, an article, a blog post … but a good lesson is something you cannot miss!

Here is Miguel Castro sessions, last NDC 2012: Extending XAML To Overcome Pretty Much Any Limitation.

2nd part is about Blend behavious and Markup extensions,
to me the most interesting 😉

Just a helpfull example: ContentMargin attached property (thanks to Steven Hollidge). 😉

source: Extending XAML To Overcome Pretty Much Any Limitation

Technorati tags: XAML, Blend

Reactive Extensions (Rx): intro video from NDC 2012 by Paul Betts

November 14, 2012

From Rx web site:

The Reactive Extensions (Rx) is a library to compose asynchronous and event-based programs using observable collections and LINQ-style query operators.

Paull Betts introduce Rx (with Linq) as a new tool for developers, a library available via NuGet (here) and the power of IObservable<T>+ Linq. 🙂

source: Introduction to Rx
source: Paull Betts

Technorati tags: Rx,Linq,IObservable