You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There 7 features required for the properties exercise:
If WeighingMachine.Units is not auto-implemented
then the following comment should be made: "The appropriate form
for a property such as WeighingMachine.Units which has no validation or other processing required is
that for an auto-implemented property". - Approved with comment.
If WeighingMachine.DisplayWeight has a non-private set accessor
then the following comment should be made: "It is not approprirate
for a property such as WeighingMachine.DisplayWeight which simply returns a value
to have a set accessor. That should be removed.". - Approved with comment.
If WeighingMachine.USDisplayWeight has a non-private set accessor
then the following comment should be made: "It is not approprirate
for a property such as USWeighingMachine.DisplayWeight which simply returns a value
to have a set accessor. That should be removed.". - Approved with comment.
If USDisplayWeight.Pounds has a non-private set accessor
then the following comment should be made: "It is not approprirate
for a property such as USDisplayWeight.Pounds which simply returns a value
to have a set accessor. That should be removed.". - Approved with comment.
If USDisplayWeight.Ounces has a non-private set accessor
then the following comment should be made: "It is not approprirate
for a property such as USDisplayWeight.Ounces which simply returns a value
to have a set accessor. That should be removed.". - Approved with comment.
If WeighingMachine.TareAdjustement is not an auto-implemented property
then the following commen should be made: "A succinct way of implementing WeighingMachine.TareAdjustment is as an auto-implemented property with a private get accessor". - Approved with comment.
If WeighingMachine.TareAdjustment is an auto-implemented property
but the get accessor is non-private then the following comment should be made:
"A non-private set accessor is not appropriate for WeighingMachine.TareAdjustment
as the instructions stipulate that the value must not be available outside the
class". - Disapproved.
See the boilerplate here.
See the completed example here.
The text was updated successfully, but these errors were encountered:
See the properties exercise.
There 7 features required for the properties exercise:
If
WeighingMachine.Units
is not auto-implementedthen the following comment should be made: "The appropriate form
for a property such as
WeighingMachine.Units
which has no validation or other processing required isthat for an auto-implemented property". - Approved with comment.
If
WeighingMachine.DisplayWeight
has a non-private set accessorthen the following comment should be made: "It is not approprirate
for a property such as
WeighingMachine.DisplayWeight
which simply returns a valueto have a set accessor. That should be removed.". - Approved with comment.
If
WeighingMachine.USDisplayWeight
has a non-private set accessorthen the following comment should be made: "It is not approprirate
for a property such as
USWeighingMachine.DisplayWeight
which simply returns a valueto have a set accessor. That should be removed.". - Approved with comment.
If
USDisplayWeight.Pounds
has a non-private set accessorthen the following comment should be made: "It is not approprirate
for a property such as
USDisplayWeight.Pounds
which simply returns a valueto have a set accessor. That should be removed.". - Approved with comment.
If
USDisplayWeight.Ounces
has a non-private set accessorthen the following comment should be made: "It is not approprirate
for a property such as
USDisplayWeight.Ounces
which simply returns a valueto have a set accessor. That should be removed.". - Approved with comment.
If
WeighingMachine.TareAdjustement
is not an auto-implemented propertythen the following commen should be made: "A succinct way of implementing
WeighingMachine.TareAdjustment
is as an auto-implemented property with aprivate
get accessor". - Approved with comment.If
WeighingMachine.TareAdjustment
is an auto-implemented propertybut the get accessor is non-private then the following comment should be made:
"A non-private set accessor is not appropriate for
WeighingMachine.TareAdjustment
as the instructions stipulate that the value must not be available outside the
class". - Disapproved.
See the boilerplate here.
See the completed example here.
The text was updated successfully, but these errors were encountered: