Exemple #1
0
        private T ValidateProperties(FieldProperties newProperties)
        {
            if (!(newProperties is T typedProperties))
            {
                throw new ArgumentException($"Properties must be of type '{typeof(T)}", nameof(newProperties));
            }

            return(typedProperties);
        }
Exemple #2
0
        public override void Update(FieldProperties newProperties)
        {
            var typedProperties = ValidateProperties(newProperties);

            properties = typedProperties;
        }
Exemple #3
0
 public abstract void Update(FieldProperties newProperties);