2019-07-29 02:05:05 +08:00
|
|
|
|
#Region "Microsoft.VisualBasic::0d1b251284fda7fe774793bd92fae0ee, Microsoft.VisualBasic.Core\Serialization\Abstract.vb"
|
2018-08-02 20:14:48 +08:00
|
|
|
|
|
2018-10-23 20:37:21 +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-10-23 20:37:21 +08:00
|
|
|
|
' /********************************************************************************/
|
2018-08-02 20:14:48 +08:00
|
|
|
|
|
2018-10-23 20:37:21 +08:00
|
|
|
|
' Summaries:
|
2018-08-02 20:14:48 +08:00
|
|
|
|
|
2018-10-23 20:37:21 +08:00
|
|
|
|
' Delegate Function
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
' Delegate Function
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
' Delegate Function
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
' Delegate Function
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
2019-05-06 18:27:46 +08:00
|
|
|
|
' Delegate Function
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
2018-10-23 20:37:21 +08:00
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
'
|
|
|
|
|
|
' /********************************************************************************/
|
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
|
2018-10-20 17:23:15 +08:00
|
|
|
|
|
|
|
|
|
|
Public Delegate Function IToString(Of T)(obj As T) As String
|
|
|
|
|
|
|
2018-08-02 20:14:48 +08:00
|
|
|
|
End Namespace
|