System.ArraySegment<T> not supported

2 posts, 0 answers
  1. Developer Developer
    Developer Developer avatar
    2 posts
    Member since:
    Oct 2012

    Posted 30 Aug 2013 Link to this post

    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; }
        }
    }
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 Sep 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top