Skip to content

Commit

Permalink
make improvements of the data model
Browse files Browse the repository at this point in the history
  • Loading branch information
xieguigang committed Feb 16, 2025
1 parent 393cbe0 commit ac010e2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Microsoft.VisualBasic.Core/src/Extensions/Extensions.vb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Imports Microsoft.VisualBasic.ComponentModel.DataSourceModel
Imports Microsoft.VisualBasic.ComponentModel.Ranges.Model
Imports Microsoft.VisualBasic.Emit.Delegates
Imports Microsoft.VisualBasic.Language
Imports Microsoft.VisualBasic.Language.[Default]
Imports Microsoft.VisualBasic.Linq
Imports Microsoft.VisualBasic.Linq.Extensions
Imports Microsoft.VisualBasic.Parallel
Expand Down Expand Up @@ -122,6 +123,20 @@ Imports Microsoft.VisualBasic.Serialization.JSON
Public Module Extensions
#End If

''' <summary>
''' check of the given object is nothing or value is empty?
''' </summary>
''' <param name="obj"></param>
''' <returns></returns>
<Extension>
Public Function is_empty(obj As IsEmpty) As Boolean
If obj Is Nothing Then
Return True
Else
Return obj.IsEmpty
End If
End Function

''' <summary>
''' get description text value from <see cref="DescriptionAttribute"/>.
''' </summary>
Expand Down

0 comments on commit ac010e2

Please sign in to comment.