Re: Sub definition
- From: Tom Shelton <tom_shelton@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 13 Sep 2009 11:34:00 -0700
On 2009-09-13, Scott M. <s-mar@xxxxxxxxxxxxx> wrote:
The are markers that delinate a compiler "attribute", which is basically a
special instruction just for the compiler. They are a way to mark, not only
a Sub (you can use them on almost all class members), with extra information
that the compiler needs to know.
-Scott
Hmmm.. While there are some attributes that affect compile time behavior (for
example, ObsoleteAttribute) - most attributes are processed at runtime. They
are markers that can be used by other classes to gain additional information
about the class, property, or method. For instance, the attributes that you
can place on the properties of a class to influence the behavior of the
PropertyGrid.
One place I use them is for mapping object properties to fields in a dataset
at runtime - sort of a simplified ORM tool.
--
Tom Shelton
.
- Follow-Ups:
- Re: Sub definition
- From: Scott M.
- Re: Sub definition
- References:
- Sub definition
- From: Sanjay Kulkarni
- Re: Sub definition
- From: Scott M.
- Sub definition
- Prev by Date: Re: Sub definition
- Next by Date: Re: Novice VB Question
- Previous by thread: Re: Sub definition
- Next by thread: Re: Sub definition
- Index(es):
Relevant Pages
|