This is a migrated thread and some comments may be shown as answers.

System.ArraySegment<T> not supported

1 Answer 50 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Developer Developer
Top achievements
Rank 1
Developer Developer asked on 30 Aug 2013, 07:40 PM

When a property return type is ArraySegment<T> and properties are auto-generated, an exception is thrown and the control is not displayed.

My example specifically:

public class TestClass
{
    private readonly ArraySegment<string> _strings;
    public IReadOnlyList<string> Strings
    {
        get { return this._strings; }
    }
}

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 02 Sep 2013, 02:55 PM
Hello,

The exception I get is "The underlying array is null." and this is thrown even without the property grid. Could you provide a bit more information why you need to work with such kind of collection ? What is the behavior that you want to get ?

Regards,
Maya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
PropertyGrid
Asked by
Developer Developer
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or