System.ComponentModel.TypeDescriptor.TypeDescriptionNode.GetTypeDescriptor C# (CSharp) 메소드

GetTypeDescriptor() 개인적인 메소드

private GetTypeDescriptor ( Type objectType, object instance ) : ICustomTypeDescriptor
objectType System.Type
instance object
리턴 ICustomTypeDescriptor
            public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
            {
                if (objectType == null)
                {
                    throw new ArgumentNullException(nameof(objectType));
                }

                if (instance != null && !objectType.GetTypeInfo().IsInstanceOfType(instance))
                {
                    throw new ArgumentException(nameof(instance));
                }

                return new DefaultTypeDescriptor(this, objectType, instance);
            }