microsoft-visualbasic-runtime/Serialization/Abstract.vb

79 lines
2.4 KiB
VB.net
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#Region "Microsoft.VisualBasic::0fcd17b8b396d510c07dbb2b01a1e5fa, Microsoft.VisualBasic.Core\Serialization\Abstract.vb"
' 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/>.
' /********************************************************************************/
' Summaries:
' Delegate Function
'
'
' Delegate Function
'
'
' Delegate Function
'
'
' Delegate Function
'
'
'
'
'
'
'
'
'
' /********************************************************************************/
#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
Public Delegate Function IObjectBuilder(data As String, schema As Type) As Object
''' <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
End Namespace