Hi, I have entity named Category, Category can be
enabled and disabled for annotation and
reporting.
Now want to write a method that will enable and disable category for annotation and reporting. I have named the method
EnableDisableCategory, it seems to me that the name is not suitable its not representing the purpose of the method.
Can you please suggest what will be the suitable name?
But want a slingle method through wich I will enable and disable category for annotation and reporting.
The method that I have written is like below :
ChangeCategoryStatus( int categoryID,string property,bool enable); hrere categroyId= the id of the category whose status have change. property = is either annotation/reporing and enable= if true enable else disable.
Now I have named the method as ChangeCategoryStatus.
farukinfo
Participant
1694 Points
350 Posts
About the naming of method.
Jul 16, 2012 08:50 AM|LINK
Hi, I have entity named Category, Category can be enabled and disabled for annotation and reporting.
Now want to write a method that will enable and disable category for annotation and reporting. I have named the method EnableDisableCategory, it seems to me that the name is not suitable its not representing the purpose of the method.
Can you please suggest what will be the suitable name?
Faruk
Please mark as Answer if it helps.
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: About the naming of method.
Jul 16, 2012 09:12 AM|LINK
IsDisabled should be the property name
by default if it is Enabled and User have to disabled it ocaasionally then it should be IsEnabled
and the data type should be bit in Sql Server and boolean in C#/Vb
farukinfo
Participant
1694 Points
350 Posts
Re: About the naming of method.
Jul 16, 2012 10:11 AM|LINK
Thanks for the reply.
But want a slingle method through wich I will enable and disable category for annotation and reporting.
The method that I have written is like below :
Faruk
Please mark as Answer if it helps.
merishaw
Member
2 Points
1 Post
Re: About the naming of method.
Aug 03, 2012 06:56 AM|LINK
Changecategorystatus is good one.