Right now, without using properties, I've got this:
public void SetNumber([Array(new int[]{8})] Byte[] number)
As you can see, I am adding the ArrayAttribute attribute to the parameter.
What I want to do is the same but on a property setter. This doesn't work:
[Array(new int[]{8})]
public Byte[] SetNumber
{
set
{
}
get
{
return null;
}
}
Is there any way of attaching the attribute to the set_SetNumber value method parameter?
Also, a related question. The two methods generated (the get/set) don't have the custom attribute. Can anyone explain to me why is that?