Sie sind auf Seite 1von 2

Visual Basic Conventions

Stereotypes
Stereotype Applies to Corresponds To
with events Attribute The WithEvents keyword.
global Attribute The Global keyword.
property get Operation A property get.
property set Operation A property set.
property let Operation A property let.
import Operation An operation to be imported from another
library.

Tagged values
Tag Applies to Corresponds To
New Attribute The New keyword.
attribute_name Operation with stereotype "property The name of the variable behind this
get", "property set" or "property let" property.
Lib Operation with stereotype "import" The library this import comes from.
Alias Operation with stereotype "import" The alias for this imported operation.

Other conventions
• The value of in for the Kind property of a parameter corresponds to the ByVal keyword.
• The value of inout or out for the Kind property of a parameter corresponds to the ByRef keyword.

VB.Net Conventions

Stereotypes

Stereotype Applies to Corresponds To

module Class A module.


import Operation An operation to be imported from another
library.
property Operation A property possibly containing both read and
write code.
event Operation An event declaration.
operator Operation An operator overload definition.

Tagged values

Tag Applies to Corresponds To

partial Class, Interface The Partial keyword.


shadows Class, Interface, Operation The Shadows keyword.
Shared Attribute The Shared keyword.
delegate Operation The Delegate keyword.
Overloads Operation The Overloads keyword.
Overrides Operation The Overrides keyword.
NotOverrideable Operation The NotOverrideable keyword.
MustOverride Operation The MustOverride keyword.
Implements Operation The implements clause on this operation.
Handles Operation The handles clause on this operation.
Lib Operation with stereotype "import" The library this import comes from.
Alias Operation with stereotype "import" The alias for this imported operation.
Corresponds to the character set clause for
Charset Operation with stereotype "import" this import. One of the values Ansi, Unicode
or Auto.
attribute_name Operation with stereotype The name of the variable behind this
"property" property.
readonly Operation with stereotype This property only defining read code.
"property"
writeonly Operation with stereotype This property only defining write code.
"property"
Narrowing Operation with stereotype The Narrowing keyword
"operator"
Widening Operation with stereotype The Widening keyword
"operator"
parameterArray Parameter A parameter list using the ParamArray
keyword.

Other conventions
• Namespaces are generated for each package below a namespace root.
• The Is Leaf property of a class corresponds to the NotInheritable keyword.
• The Abstract property of a class corresponds to the MustInherit keyword.
• The Static property of an attribute or operation corresponds to the Shared keyword.
• The Abstract property of an operation corresponds to the MustOverride keyword.
• The value of in for the Kind property of a parameter corresponds to the ByVal keyword.
• The value of inout or out for the Kind

Das könnte Ihnen auch gefallen