[Mono-dev] Coding guidelines nitpicks

"Andrés G. Aragoneses" knocte at gmail.com
Sat May 30 11:03:22 EDT 2009


Miguel de Icaza wrote:
> 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?

Done.

Any other opinions on casts?

	Andrés

-- 



More information about the Mono-devel-list mailing list