AnantLabs / codesmith

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

OnAddNewCore must pass Object byref #531

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The partial method OnAddNewCore, in VB version pass the object ref ByVal:
Partial Private Sub OnAddNewCore(ByRef item As <%= ChildBusinessClassName %><%= 
Entity.GenericProperty %>, ByRef cancel As Boolean)

The C# version pass the object ByRef:
partial void OnAddNewCore(ref <%= ChildBusinessClassName %><%= 
Entity.GenericProperty %> item, ref bool cancel);

The correct would be ByRef, as C# version, giving the posibility to change the 
object in the partial method (and giving me the posibility to quick-solve the 
issue 530 ;-)

Original issue reported on code.google.com by bernyrod...@gmail.com on 23 Nov 2010 at 8:38

GoogleCodeExporter commented 9 years ago
Sorry, I will correct the first two lines (I wrote 'ByRef' instead of 'ByVal'):

The partial method OnAddNewCore, in VB version pass the object ref ByVal:
Partial Private Sub OnAddNewCore(<<<ByVal>>> item As <%= ChildBusinessClassName 
%><%= Entity.GenericProperty %>, ByRef cancel As Boolean)

Original comment by bernyrod...@gmail.com on 23 Nov 2010 at 8:41

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 29 Nov 2010 at 3:47

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r2521.

Fixed OnAddNewCore must pass Object byref

Original comment by bniemyjski on 9 Mar 2012 at 2:21

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 9 Mar 2012 at 2:21