23 [RequiresUnreferencedCode(
"PropertyDescriptor's PropertyType cannot be statically discovered.")]
33 if (typeFromName !=
null && typeof(
TypeConverter).IsAssignableFrom(typeFromName))
56 return designerSerializationVisibilityAttribute.
Visibility;
81 if (component ==
null)
99 public override bool Equals([NotNullWhen(
true)]
object?
obj)
126 if (constructor !=
null)
139 base.FillAttributes(attributeList);
142 [RequiresUnreferencedCode(
"PropertyDescriptor's PropertyType cannot be statically discovered.")]
148 [RequiresUnreferencedCode(
"PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
154 [RequiresUnreferencedCode(
"PropertyDescriptor's PropertyType cannot be statically discovered. The Type of instance cannot be statically discovered.")]
160 [RequiresUnreferencedCode(
"PropertyDescriptor's PropertyType cannot be statically discovered. The Type of instance cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
163 if (instance ==
null)
170 [RequiresUnreferencedCode(
"Editors registered in TypeDescriptor.AddEditorTable may be trimmed. PropertyDescriptor's PropertyType cannot be statically discovered.")]
187 for (
int j = 0; j < attributes.
Count; j++)
194 if (editorBaseType == typeFromName)
197 if (typeFromName2 !=
null)
216 object[] array2 =
new object[_editors.Length * 2];
235 object obj = base.GetInvocationTarget(
type, instance);
238 obj = customTypeDescriptor.GetPropertyOwner(
this);
243 [RequiresUnreferencedCode(
"Calls ComponentType.Assembly.GetType on the non-fully qualified typeName, which the trimmer cannot recognize.")]
247 if (typeName ==
null || typeName.Length == 0)
255 int num = typeName.IndexOf(
',');
258 typeName = typeName.Substring(0, num);
262 return type2 ??
type;
265 public abstract object?
GetValue(
object? component);
269 if (component !=
null)
277 if (component ==
null)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
virtual void Remove(object key)
DesignerSerializationVisibility Visibility
static readonly LocalizableAttribute Yes
virtual AttributeCollection Attributes
PropertyDescriptor(MemberDescriptor descr)
virtual void OnValueChanged(object? component, EventArgs e)
void SetValue(object? component, object? value)
EventHandler? GetValueChangedHandler(object component)
override void FillAttributes(IList attributeList)
PropertyDescriptor(string name, Attribute[]? attrs)
PropertyDescriptorCollection GetChildProperties()
virtual TypeConverter Converter
override int GetHashCode()
PropertyDescriptorCollection GetChildProperties(object instance)
object? CreateInstance([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type type)
bool CanResetValue(object component)
virtual void RemoveValueChanged(object component, EventHandler handler)
virtual ? object GetEditor(Type editorBaseType)
PropertyDescriptorCollection GetChildProperties(Attribute[] filter)
override bool Equals([NotNullWhen(true)] object? obj)
bool ShouldSerializeValue(object component)
virtual PropertyDescriptorCollection GetChildProperties(object? instance, Attribute[]? filter)
override? object GetInvocationTarget(Type type, object instance)
virtual void AddValueChanged(object component, EventHandler handler)
Type? GetTypeFromName([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] string? typeName)
object? GetValue(object? component)
virtual bool SupportsChangeEvents
virtual bool IsLocalizable
void ResetValue(object component)
Hashtable _valueChangedHandlers
PropertyDescriptor(MemberDescriptor descr, Attribute[]? attrs)
DesignerSerializationVisibility SerializationVisibility
static PropertyDescriptorCollection GetProperties([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type componentType)
static ? object GetEditor(object component, Type editorBaseType)
static TypeConverter GetConverter(object component)
static ? object CreateInstance(IServiceProvider? provider, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, Type[]? argTypes, object[]? args)
static ? Delegate Remove(Delegate? source, Delegate? value)
static ? Delegate Combine(Delegate? a, Delegate? b)
virtual ? string FullName
virtual ? Type GetType(string name)
static ? Type GetType(string typeName, bool throwOnError, bool ignoreCase)
override int GetHashCode()
DesignerSerializationVisibility
DynamicallyAccessedMemberTypes
delegate void EventHandler(object? sender, EventArgs e)