[Mono-dev] Coding guidelines nitpicks

Miguel de Icaza miguel at novell.com
Tue May 12 11:13:27 EDT 2009


Hello,

> 1) Casting: which one is correct?
>
> a)
>
> x = ((int)GetPropertyValue ()).ToString ();
>
> b)
>
> x = ((int) GetPropertyValue ()).ToString ();

No strong opinion on the space after the cast.

> 2) Generics:  which one is correct?
>
> a)
>
> x = new List<int> ();
>
> b)
>
> x = new List <int> ();

No space before the <generic>

Would you mind updating the Wiki?

Miguel.


More information about the Mono-devel-list mailing list