public override MethodInfo[] GetAccessors(bool nonPublic) { return new[] { this.getMethod, this.setMethod }.Where(x => x != null && (nonPublic || x.IsPublic)).ToArray(); }