[Gtk-sharp-list] Glade example code
Sat, 07 Feb 2004 18:44:13 -0500
On Sat, 2004-02-07 at 10:57, Ian Pointer wrote:
> [Glade.Widget] Button button1;
> I get that this somehow connects the new GtkButton object to the one in
> the Glade file, but, uh, how does it do it? If you could just give me
> the name of the language feature being used so I could go and search
> for it, it would be a great help 8-).
That's an Attribute. Attributes can be attached to most language
constructs except for local variables -- classes, structures,
interfaces, fields, events, properties, methods, assemblies, etc.
You can query for the attributes attached to an item at runtime by using
ICustomAttributeProvider is implemented by System.Type and many of the
classes in the System.Reflection namespace, such as MethodInfo and