R
Ron Bullman
Hi,
I haven't been able to find proper (commonly agreed) names for the following
kinds of methods.
Class (static) methods:
c1) returns value, doesn't modify the content of its argument(s) and
doesn't change the state of class (class accessor?)
c2) returns value, doesn't modify the content of its argument(s) and
changes the state of class (class mutator?)
c3) returns value, modifies the content of its argument(s) and
doesn't change the state of class (class ?)
c4) returns value, modifies the content of its argument(s) and
changes the state of class (class mutator?)
c5) doesn't return value, doesn't modify the content of its argument(s) and
doesn't change the state of class (useless?)
c6) doesn't return value, doesn't modify the content of its argument(s) and
changes the state of class (class mutator?)
c7) doesn't return value, modifies the content of its argument(s) and
doesn't change the state of class (class ?)
c8) doesn't return value, modifies the content of its argument(s) and
changes the state of class (class mutator?)
Instance methods:
i1) returns value, doesn't modify the content of its argument(s) and
doesn't change the state of instance (instance accessor?)
i2) returns value, doesn't modify the content of its argument(s) and
changes the state of instance (instance mutator?)
i3) returns value, modifies the content of its argument(s) and
doesn't change the state of instance (instance ?)
i4) returns value, modifies the content of its argument(s) and
changes the state of instance (instance mutator?)
i5) doesn't return value, doesn't modify the content of its argument(s) and
doesn't change the state of instance (useless?)
i6) doesn't return value, doesn't modify the content of its argument(s) and
changes the state of instance (instance mutator?)
i7) doesn't return value, modifies the content of its argument(s) and
doesn't change the state of instance (instance ?)
i8) doesn't return value, modifies the content of its argument(s) and
changes the state of instance (instance mutator?)
Any ideas where to find such terminology defined in C# (and/ or .NET)
context? It would be good to know also what kind of unofficial names are
used by practitioners?
Also in what kind of situations it is acceptable to use such methods which
modifies the content of its argument(s) (c3, c4, c7, c8, i3, i4, i7, i8)?
Ron
I haven't been able to find proper (commonly agreed) names for the following
kinds of methods.
Class (static) methods:
c1) returns value, doesn't modify the content of its argument(s) and
doesn't change the state of class (class accessor?)
c2) returns value, doesn't modify the content of its argument(s) and
changes the state of class (class mutator?)
c3) returns value, modifies the content of its argument(s) and
doesn't change the state of class (class ?)
c4) returns value, modifies the content of its argument(s) and
changes the state of class (class mutator?)
c5) doesn't return value, doesn't modify the content of its argument(s) and
doesn't change the state of class (useless?)
c6) doesn't return value, doesn't modify the content of its argument(s) and
changes the state of class (class mutator?)
c7) doesn't return value, modifies the content of its argument(s) and
doesn't change the state of class (class ?)
c8) doesn't return value, modifies the content of its argument(s) and
changes the state of class (class mutator?)
Instance methods:
i1) returns value, doesn't modify the content of its argument(s) and
doesn't change the state of instance (instance accessor?)
i2) returns value, doesn't modify the content of its argument(s) and
changes the state of instance (instance mutator?)
i3) returns value, modifies the content of its argument(s) and
doesn't change the state of instance (instance ?)
i4) returns value, modifies the content of its argument(s) and
changes the state of instance (instance mutator?)
i5) doesn't return value, doesn't modify the content of its argument(s) and
doesn't change the state of instance (useless?)
i6) doesn't return value, doesn't modify the content of its argument(s) and
changes the state of instance (instance mutator?)
i7) doesn't return value, modifies the content of its argument(s) and
doesn't change the state of instance (instance ?)
i8) doesn't return value, modifies the content of its argument(s) and
changes the state of instance (instance mutator?)
Any ideas where to find such terminology defined in C# (and/ or .NET)
context? It would be good to know also what kind of unofficial names are
used by practitioners?
Also in what kind of situations it is acceptable to use such methods which
modifies the content of its argument(s) (c3, c4, c7, c8, i3, i4, i7, i8)?
Ron