none
How to set PropertyDescriptor.IsBrowsable property? RRS feed

  • General discussion

  • Hello All, 

               We can set/ decorate the property descriptor of a class property to either true or false by doing as follows..

    [Browsable(false)]

    public int MyProperty {get; set;}

    example:

    using System.ComponentModel;
    public class Data
    {
        [Browsable(false)]
        public int MyProperty { get; set; }
    }



    If you find any Question/Discussion/Answers helpful, Kindly Vote As Helpful

    Regards

    Salam



    • Edited by salam.p.v Monday, January 28, 2013 5:24 AM
    Monday, January 28, 2013 4:51 AM

All replies