microsoft-visualbasic-runtime/Serialization/Abstract.vb

79 lines
2.4 KiB
VB.net
Raw Normal View History

2019-03-10 18:10:46 +08:00
#Region "Microsoft.VisualBasic::0fcd17b8b396d510c07dbb2b01a1e5fa, Microsoft.VisualBasic.Core\Serialization\Abstract.vb"
2018-08-02 20:14:48 +08:00
' Author:
'
' asuka (amethyst.asuka@gcmodeller.org)
' xie (genetics@smrucc.org)
' xieguigang (xie.guigang@live.com)
'
' Copyright (c) 2018 GPL3 Licensed
'
'
' GNU GENERAL PUBLIC LICENSE (GPL3)
'
'
' This program is free software: you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation, either version 3 of the License, or
' (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
' GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public License
' along with this program. If not, see <http://www.gnu.org/licenses/>.
2018-08-02 20:14:48 +08:00
' /********************************************************************************/
2018-08-02 20:14:48 +08:00
' Summaries:
2018-08-02 20:14:48 +08:00
' Delegate Function
'
'
' Delegate Function
'
'
' Delegate Function
'
'
' Delegate Function
'
'
'
'
'
'
'
'
'
' /********************************************************************************/
2018-08-02 20:14:48 +08:00
#End Region
Namespace Serialization
''' <summary>
''' 数据类型转换方法的句柄对象
''' </summary>
''' <param name="data">源之中的数据由于源是一个TEXT格式的数据文件故而这里的数据类型为字符串通过本句柄对象可以将字符串数据映射为其他的复杂数据类型</param>
''' <returns></returns>
''' <remarks></remarks>
Public Delegate Function IStringParser(data As String) As Object
Public Delegate Function IStringParser(Of T)(data As String) As T
2019-03-25 20:40:34 +08:00
Public Delegate Function IObjectBuilder(data As String, schema As Type) As Object
2018-08-02 20:14:48 +08:00
''' <summary>
''' 将目标对象序列化为文本字符串的字符串构造方法
''' </summary>
''' <param name="data"></param>
''' <returns></returns>
Public Delegate Function IStringBuilder(data As Object) As String
Public Delegate Function IToString(Of T)(obj As T) As String
2018-08-02 20:14:48 +08:00
End Namespace