| 1 | #Region "Microsoft.VisualBasic::7a6774d21c22f965b423980033c765c9, Microsoft.VisualBasic.Core\ApplicationServices\VBDev\Signature\LicenseInfo.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 | ' Class LicenseInfo |
| 35 | ' |
| 36 | ' Properties: Authors, Brief, Copyright, Title |
| 37 | ' |
| 38 | ' Function: ToString |
| 39 | ' |
| 40 | ' |
| 41 | ' /********************************************************************************/ |
| 42 | |
| 43 | #End Region |
| 44 | |
| 45 | Imports System.Runtime.CompilerServices |
| 46 | Imports System.Xml.Serialization |
| 47 | Imports Microsoft.VisualBasic.Language |
| 48 | Imports Microsoft.VisualBasic.Text.Xml.Models |
| 49 | |
| 50 | Namespace ApplicationServices.Development |
| 51 | |
| 52 | ' Here is the example: |
| 53 | |
| 54 | #Region "b77a5c561934e089; ./Tools/SoftwareToolkits/LicenseMgr.vb" |
| 55 | |
| 56 | ' Author: <-- authors |
| 57 | ' ' asuka (amethyst.asuka@gcmodeller.org) |
| 58 | ' xieguigang (xie.guigang@live.com) |
| 59 | ' ' Copyright (c) 2016 amethyst.asuka@gcmodeller.org <-- copyright |
| 60 | ' ' |
| 61 | ' The MIT License (MIT) <-- title |
| 62 | ' ' Permission is hereby granted, free of charge, to any person obtaining a copy <-- biref |
| 63 | ' of this software and associated documentation files (the "Software"), to deal |
| 64 | ' in the Software without restriction, including without limitation the rights |
| 65 | ' to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 66 | ' copies of the Software, and to permit persons to whom the Software is |
| 67 | ' furnished to do so, subject to the following conditions: |
| 68 | ' ' The above copyright notice and this permission notice shall be included in |
| 69 | ' all copies or substantial portions of the Software. |
| 70 | ' ' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 71 | ' IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 72 | ' FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 73 | ' AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 74 | ' LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 75 | ' OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 76 | ' THE SOFTWARE. |
| 77 | |
| 78 | #End Region |
| 79 | |
| 80 | Public Class LicenseInfo : Inherits BaseClass |
| 81 | |
| 82 | Public Property Authors As NamedValue() |
| 83 | Public Property Title As String |
| 84 | Public Property Copyright As String |
| 85 | |
| 86 | <XmlText> |
| 87 | Public Property Brief As String |
| 88 | |
| 89 | <MethodImpl(MethodImplOptions.AggressiveInlining)> |
| 90 | Public Overrides Function ToString() As String |
| 91 | Return Brief |
| 92 | End Function |
| 93 | End Class |
| 94 | End Namespace |