-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for VB.NET named, indexed properties where all indexes have d…
…efault values, re: #221 / Performance improvements
- Loading branch information
1 parent
93f2b4f
commit c0f6beb
Showing
12 changed files
with
287 additions
and
117 deletions.
There are no files selected for viewing
24 changes: 17 additions & 7 deletions
24
AgileMapper.UnitTests.MoreTestClasses.Vb/PublicNamedIndex.vb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
Public Class PublicNamedIndex(Of T) | ||
Public Class PublicNamedIndex(Of T1, T2) | ||
|
||
Private _valueToReturn As T | ||
Private _value1ToReturn As T1 | ||
|
||
Public WriteOnly Property ValueToReturn As T | ||
Public WriteOnly Property Value1ToReturn As T1 | ||
Set | ||
_valueToReturn = Value | ||
_value1ToReturn = Value | ||
End Set | ||
End Property | ||
|
||
Public ReadOnly Property Value( | ||
Public ReadOnly Property Value1( | ||
Optional indexOne As Integer = 1, | ||
Optional indexTwo As Integer = 2) As T | ||
Optional indexTwo As Integer = 2) As T1 | ||
Get | ||
Return _valueToReturn | ||
Return _value1ToReturn | ||
End Get | ||
End Property | ||
|
||
Public Property Value2SetValue As T2 | ||
|
||
Public WriteOnly Property Value2( | ||
indexOne As Integer, | ||
indexTwo As Integer) As T2 | ||
Set | ||
Value2SetValue = Value | ||
End Set | ||
End Property | ||
|
||
End Class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.