attributeassemblycopyright.vb

来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 24 行

VB
24
字号
'Author: Ritvik Mayank <mritvik@novell.com>'Copyright (C) 2005 Novell, Inc (http://www.novell.com)Imports SystemImports System.ReflectionImports System.Runtime.CompilerServices<Assembly: AssemblyCopyright("2004, 2005 Novell, Inc.")> Module Test    Function Main() As Integer        Dim asm As System.Reflection.Assembly        Dim i As Integer        asm = System.Reflection.Assembly.GetAssembly(GetType(Test))        Dim att As Object() = asm.GetCustomAttributes(GetType(System.Reflection.AssemblyCopyrightAttribute), False)        For i = 0 To att.Length - 1            If att(i).ToString() <> "System.Reflection.AssemblyCopyrightAttribute" Then                System.Console.WriteLine("AssemblyCopyright Attribute was not set properly") : Return 1            End If        Next i    End FunctionEnd Module

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?