⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 attributesclassbothsuffixa.vb

📁 大名鼎鼎的mono是.NET平台的跨平台(支持linux
💻 VB
字号:
'Author: Ritvik Mayank <mritvik@novell.com>'Copyright (C) 2005 Novell Inc. (http://www.novell.com)'Both Simple and SimpleAttribute is definedImports System<AttributeUsage(AttributeTargets.Class)> _Public Class SimpleAttribute    Inherits System.Attribute    Public Sub New(ByVal A As String)        Me.A = A    End Sub    Public B As String    Private A As String    Public ReadOnly Property A1() As String        Get            Return A        End Get    End PropertyEnd Class<SimpleAttribute("string")> _Public Class Class2End Class<Simple("hello")> _Public Class Class1    Shared Function Main() As Integer        Dim type As Type = GetType(Class1)        Dim arr() As Object = _                      type.GetCustomAttributes(GetType(simpleAttribute), True)    End FunctionEnd Class

⌨️ 快捷键说明

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