Talk:ThingDef/.xml notation "attributes" are actually elements/reply (3)
< Talk:ThingDef/.xml notation "attributes" are actually elements
Jump to navigation
Jump to search
Revision as of 01:27, 3 May 2014 by TynanSylvester (talk | contribs) (Reply to .xml notation "attributes" are actually elements)
In C# a field is a raw piece of data held by a class.
A property is a sort of virtual field. It looks like a field, but reading or writing to it actually invoke little methods.
The term variable covers both of them.
A C# attribute is a tag attached to a field, class, or some other part of the code. Attributes can be things like "this should be saved".
In XML, an attribute is a piece of data attached to an element like this: <ElementName AttributeName="AttributeValue">Inner elements here</ElementName>