System.ComponentModel.ArrayConverter.ArrayPropertyDescriptor.SetValue C# (CSharp) Method

SetValue() public method

public SetValue ( object instance, object value ) : void
instance object
value object
return void
            public override void SetValue(object instance, object value) {
                if (instance is Array) {
                    Array array = (Array)instance;
                    if (array.GetLength(0) > index) {
                        array.SetValue(value, index);
                    }
                    
                    OnValueChanged(instance, EventArgs.Empty);
                }
            }
        }
ArrayConverter.ArrayPropertyDescriptor