1 #Region "Microsoft.VisualBasic::f1f5a58375713d7edc4e8127b2cee8fd, Microsoft.VisualBasic.Core\Serialization\Abstract.vb"
2
3     ' Author:
4     
5     '       asuka (amethyst.asuka@gcmodeller.org)
6     '       xie (genetics@smrucc.org)
7     '       xieguigang (xie.guigang@live.com)
8     
9     ' Copyright (c) 2018 GPL3 Licensed
10     
11     
12     ' GNU GENERAL PUBLIC LICENSE (GPL3)
13     
14     
15     ' This program is free software: you can redistribute it and/or modify
16     ' it under the terms of the GNU General Public License as published by
17     ' the Free Software Foundation, either version 3 of the License, or
18     ' (at your option) any later version.
19     
20     ' This program is distributed in the hope that it will be useful,
21     ' but WITHOUT ANY WARRANTY; without even the implied warranty of
22     ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23     ' GNU General Public License for more details.
24     
25     ' You should have received a copy of the GNU General Public License
26     ' along with this program. If not, see <http://www.gnu.org/licenses/>.
27
28
29
30     ' /********************************************************************************/
31
32     ' Summaries:
33
34     '     Delegate Function
35     
36     
37     '     Delegate Function
38     
39     
40     '     Delegate Function
41     
42     
43     '     Delegate Function
44     
45     
46     
47     
48     
49     
50     
51     
52     
53     ' /********************************************************************************/
54
55 #End Region
56
57 Namespace Serialization
58
59     ''' <summary>
60     ''' 数据类型转换方法的句柄对象
61     ''' </summary>
62     ''' <param name="data">源之中的数据,由于源是一个TEXT格式的数据文件,故而这里的数据类型为字符串,通过本句柄对象可以将字符串数据映射为其他的复杂数据类型</param>
63     ''' <returns></returns>
64     ''' <remarks></remarks>
65     Public Delegate Function IStringParser(data As StringAs Object
66     Public Delegate Function IStringParser(Of T)(data As StringAs T
67
68     ''' <summary>
69     ''' 将目标对象序列化为文本字符串的字符串构造方法
70     ''' </summary>
71     ''' <param name="data"></param>
72     ''' <returns></returns>
73     Public Delegate Function IStringBuilder(data As ObjectAs String
74
75     Public Delegate Function IToString(Of T)(obj As T) As String
76
77 End Namespace