attributesclassb.vb
来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 37 行
VB
37 行
'Author: Ritvik Mayank <mritvik@novell.com>'Copyright (C) 2005 Novell Inc. (http://www.novell.com)' use of Simple instead of SimpleAttribute for Interface Imports System<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Interface)> _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<Simple("hello")> _Class Class1End Class<Simple("hello")> _Public Interface Interface1End InterfaceModule Test Function Main() As Integer End FunctionEnd Module
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?