internal StringOptionsEntry(OptionAttribute oa, PropertyInfo prop) : base(prop?.Name, oa) { var limits = LimitAttribute.FindFrom(prop); // Use the maximum limit value for the max length, if present if (limits != null) { maxLength = Math.Max(2, (int)Math.Round(limits.Maximum)); } else { maxLength = 256; } textField = null; value = ""; }
protected SlidingBaseOptionsEntry(OptionAttribute oa, PropertyInfo prop) : base(prop?. Name, oa) { limits = LimitAttribute.FindFrom(prop); slider = null; }