I have been discussing pros and cons with myself now for about 15 minutes, whether I should use a method or a property. Now I am seeking some input form somebody else other than myself LOL
I have a usercontrol with several widgets on it. In addition to having properties to get/set each of the widgets individualy I would like to add a method or a property to set/get all the widgets at the same time, by passing/returning a byte array. I just can't make up my mind if I should use a method to do this or a property.
public void MethodName (byte[] paraBA)
{
}
public byte[] MethodName ()
{
}
or
public byte[] PropertyName
{
get
{
}
set
{
}
}
I guess at the end of the day it doesn't really matter, but I would like to know your opinion.
Thanks,
Einar
Semper ubi sub ubi.