System.ComponentModel.CustomTypeDescriptor.GetClassName C# (CSharp) Method

GetClassName() public method

public GetClassName ( ) : string
return string
        public virtual string GetClassName()
        {
            if (_parent != null)
            {
                return _parent.GetClassName();
            }

            return null;
        }

Usage Example

 public void GetClassNameShouldReturnTypeArgumentName()
 {
     var expected = TypeDescriptor.GetClassName( typeof( object ) );
     var target = new CustomTypeDescriptor<object>();
     var actual = target.GetClassName();
     Assert.Equal( expected, actual );
 }