Hi josema,
If I understand correctly your question you are asking whether to use method
or property to set and get a member variables (Name = x or SetName(x)).
If you are concerned about the the performance you shouldn't be. Both
methods and properties are method calls so there is no difference in terms
of performance.
You should choose one of those depending on your application design and how
you are planning to set and get that value.
Bare in mind that setting and getting properties looks for the programmers
that are going to use that class like giving value and reading normal data
members (variables). Thus, if you use properties setting and getting
operations should be fast and it shouldn't has more site effects than it
would have if it was a regular class variable.
For example, IMHO, it is not good design practice to write Property that
takes 10 seconds to be set or read. If it is going to take 10 seconds it is
better to use SetName() method that gives the programmersusing the class a
hint that it might involve more actions than just setting a variable.
Of course proper naming is very important I believe that methods should be
named with verbs (or they should have a verb in their names), properties
should be named with adjectives or nouns.
HTH
B\rgds
100