Skip to content

Commit 098a9ab

Browse files
committed
union ofthe s4 class system
1 parent f879a55 commit 098a9ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Microsoft.VisualBasic.Core/src/Extensions/Reflection/DynamicType.vb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ Public Class DynamicType
118118
Me.properties = New List(Of PropertyInfo)(properties)
119119
End Sub
120120

121+
Sub New(base As Type, ParamArray properties As PropertyInfo())
122+
Me.New(properties)
123+
Me.inheritsFrom = base
124+
End Sub
125+
121126
Public Function Add(name As String, type As Type,
122127
Optional description As String = Nothing,
123128
Optional displayName As String = Nothing) As DynamicType

0 commit comments

Comments
 (0)