17 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"The DynamicDependency ensures the correct members are preserved.")]
32 : base(name, attributes)
46 if (defaultValueAttribute !=
null)
94 bool ICollection.IsSynchronized =>
false;
96 object ICollection.SyncRoot =>
null;
139 return destinationType == typeof(
string);
151 return instanceDescriptor.Invoke();
188 if (destinationType ==
null)
192 if (destinationType == typeof(
string))
200 return formattable.ToString(
null,
culture);
202 return value.ToString();
264 [RequiresUnreferencedCode(
"The Type of value cannot be statically discovered.")]
270 [RequiresUnreferencedCode(
"The Type of value cannot be statically discovered.")]
277 [RequiresUnreferencedCode(
"The Type of value cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
object? GetValue(params int[] indices)
bool Contains(Attribute? attribute)
virtual AttributeCollection Attributes
virtual PropertyDescriptorCollection Sort()
void SetValue(object? component, object? value)
object? GetValue(object? component)
static readonly ReadOnlyAttribute Yes
override void ResetValue(object component)
override Type ComponentType
override bool ShouldSerializeValue(object component)
SimplePropertyDescriptor(Type componentType, string name, Type propertyType)
override Type PropertyType
override bool CanResetValue(object component)
SimplePropertyDescriptor(Type componentType, string name, Type propertyType, Attribute[]? attributes)
StandardValuesCollection(ICollection? values)
void CopyTo(Array array, int index)
IEnumerator GetEnumerator()
readonly ICollection _values
PropertyDescriptorCollection SortProperties(PropertyDescriptorCollection props, string[] names)
PropertyDescriptorCollection? GetProperties(ITypeDescriptorContext? context, object value)
virtual ? object CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues)
object? CreateInstance(IDictionary propertyValues)
string? ConvertToString(ITypeDescriptorContext? context, object? value)
virtual ? object ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
string? ConvertToString(object? value)
bool CanConvertTo(Type destinationType)
object? ConvertFromString(ITypeDescriptorContext? context, string text)
object? ConvertFrom(object value)
bool GetPropertiesSupported()
string? ConvertToString(ITypeDescriptorContext? context, CultureInfo? culture, object? value)
bool GetStandardValuesSupported()
string? ConvertToInvariantString(ITypeDescriptorContext? context, object? value)
virtual bool IsValid(ITypeDescriptorContext? context, object value)
object? ConvertFromInvariantString(string text)
virtual bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
virtual ? StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context)
virtual ? PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes)
bool GetStandardValuesExclusive()
virtual bool GetPropertiesSupported(ITypeDescriptorContext? context)
virtual bool GetStandardValuesSupported(ITypeDescriptorContext? context)
object? ConvertFromInvariantString(ITypeDescriptorContext? context, string text)
virtual bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
bool CanConvertFrom(Type sourceType)
virtual ? object ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
PropertyDescriptorCollection? GetProperties(object value)
bool IsValid(object value)
ICollection? GetStandardValues()
bool GetCreateInstanceSupported()
virtual bool GetStandardValuesExclusive(ITypeDescriptorContext? context)
object? ConvertTo(object? value, Type destinationType)
string? ConvertToInvariantString(object? value)
virtual bool GetCreateInstanceSupported(ITypeDescriptorContext? context)
Exception GetConvertToException(object? value, Type destinationType)
object? ConvertFromString(string text)
object? ConvertFromString(ITypeDescriptorContext? context, CultureInfo? culture, string text)
Exception GetConvertFromException(object? value)
static CultureInfo CurrentCulture
static CultureInfo InvariantCulture
static string ConvertToException
static string Format(string resourceFormat, object p1)
static string ConvertFromException
void CopyTo(Array array, int index)
IEnumerator GetEnumerator()
DynamicallyAccessedMemberTypes