asiftasleem / nbuilder

Automatically exported from code.google.com/p/nbuilder
0 stars 0 forks source link

Property namer fails if it encounters a get method and an exception is throw inside it. #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
User
   Id : int
   UserId { get { throw new Exception(); } }

This would fail but it shouldn't do because NBuilder shouldn't even be
considering that property because it doesn't have a setter.

Original issue reported on code.google.com by garethdo...@googlemail.com on 29 May 2009 at 3:31

GoogleCodeExporter commented 8 years ago
Turns out it was the GetCurrentValue method. Just added a try/catch which fixes 
it.

Original comment by garethdo...@googlemail.com on 6 Jun 2009 at 11:31