Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved error message when a FieldMapping cannot be set or read. Closes
#54.
- Loading branch information
Showing
3 changed files
with
40 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Imports System.Runtime.CompilerServices | ||
Imports System.IO | ||
|
||
Friend Module SystemReflectionExtensions | ||
|
||
''' <summary> | ||
''' Returns the full class name and field name. | ||
''' </summary> | ||
<Extension()> | ||
Public Function FullName(ByVal field As System.Reflection.FieldInfo) As String | ||
|
||
Return field.DeclaringType.FullName & System.Type.Delimiter & field.Name | ||
|
||
End Function | ||
|
||
''' <summary> | ||
''' Returns the full class name and property name. | ||
''' </summary> | ||
<Extension()> | ||
Public Function FullName(ByVal [property] As System.Reflection.PropertyInfo) As String | ||
|
||
Return [property].DeclaringType.FullName & System.Type.Delimiter & [property].Name | ||
|
||
End Function | ||
|
||
End Module | ||
|