public override MethodInfo[] GetAccessors (bool nonPublic)
{
MethodInfo getter = GetGetMethod (nonPublic);
MethodInfo setter = GetSetMethod (nonPublic);
int methods = 0;
if (getter != null)
++methods;
if (setter != null)
++methods;
MethodInfo[] res = new MethodInfo [methods];
methods = 0;
if (getter != null)
res [methods++] = getter;
if (setter != null)
res [methods] = setter;
return res;
}