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

GetValue() public method

public GetValue ( object instance ) : object
instance object
return object
            public override object GetValue(object instance) {
                if (instance is Array) {
                    Array array = (Array)instance;
                    if (array.GetLength(0) > index) {
                        return array.GetValue(index);
                    }
                }
                
                return null;
            }
            
ArrayConverter.ArrayPropertyDescriptor