12[
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2113:ReflectionToRequiresUnreferencedCode", Justification =
"The use of GetType preserves ICustomTypeDescriptor members with RequiresUnreferencedCode, but the GetType callsites either occur in RequiresUnreferencedCode scopes, or have individually justified suppressions.")]
60 public virtual object this[
string keyword]
200 for (
int i = 0; i <
array.Length; i++)
361 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2112:ReflectionToRequiresUnreferencedCode", Justification =
"The use of GetType preserves this member with RequiresUnreferencedCode, but the GetType callsites either occur in RequiresUnreferencedCode scopes, or have individually justified suppressions.")]
385 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2112:ReflectionToRequiresUnreferencedCode", Justification =
"The use of GetType preserves this member with RequiresUnreferencedCode, but the GetType callsites either occur in RequiresUnreferencedCode scopes, or have individually justified suppressions.")]
396 if (
"ConnectionString" !=
property.Name)
477 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2112:ReflectionToRequiresUnreferencedCode", Justification =
"The use of GetType preserves this member with RequiresUnreferencedCode, but the GetType callsites either occur in RequiresUnreferencedCode scopes, or have individually justified suppressions.")]
478 [
RequiresUnreferencedCode(
"The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
482 if (attributes ==
null || attributes.Length == 0)
511 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"The component type's class name is preserved because this class is marked with [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]")]
518 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"The component type's component name is preserved because this class is marked with [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]")]
525 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"The component type's attributes are preserved because this class is marked with [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]")]
537 [
RequiresUnreferencedCode(
"Generic TypeConverters may require the generic types to be annotated. For example, NullableConverter requires the underlying type to be DynamicallyAccessedMembers All.")]
555 [
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.")]
561 [
RequiresUnreferencedCode(
"The built-in EventDescriptor implementation uses Reflection which requires unreferenced code.")]
567 [
UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"The component type's events are preserved because this class is marked with [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]")]
574 [
RequiresUnreferencedCode(
"The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ContainsKey(TKey key)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
bool ICollection< KeyValuePair< TKey, TValue > >. IsReadOnly
Enumerator GetEnumerator()
virtual ICollection Values
void CopyTo(T[] array, int index)
object ICollection. SyncRoot
bool ICollection. IsSynchronized
IEnumerator< T > GetEnumerator()
static readonly BrowsableAttribute Yes
static readonly PasswordPropertyTextAttribute Yes
static PropertyDescriptorCollection GetProperties([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type componentType)
static EventDescriptorCollection GetEvents([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type componentType)
static ? object GetEditor(object component, Type editorBaseType)
static ? string GetClassName(object component)
static TypeConverter GetConverter(object component)
static ? EventDescriptor GetDefaultEvent([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type componentType)
static ? string GetComponentName(object component)
static ? PropertyDescriptor GetDefaultProperty([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type componentType)
static AttributeCollection GetAttributes([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type componentType)
static ? string ToString(object? value)
static void CheckArgumentNull([NotNull] object value, string parameterName)
static ArgumentException KeywordNotSupported(string keyword)
static void AppendKeyValuePairBuilder(StringBuilder builder, string keyName, string keyValue, bool useOdbcRules)
static void ValidateKeyValuePair(string keyword, string value)
static string ConvertToString(object value)
static void AppendKeyValuePair(StringBuilder builder, string keyword, string? value, bool useOdbcRules)
string ObjectToString(object keyword)
virtual bool Remove(string keyword)
PropertyDescriptorCollection _propertyDescriptors
Dictionary< string, object > CurrentValues
PropertyDescriptorCollection GetProperties()
override string ToString()
bool BrowsableConnectionString
virtual void GetProperties(Hashtable propertyDescriptors)
static void AppendKeyValuePair(StringBuilder builder, string keyword, string? value)
virtual bool EquivalentTo(DbConnectionStringBuilder connectionStringBuilder)
void ClearPropertyDescriptors()
virtual bool ShouldSerialize(string keyword)
virtual string ConvertValueToString(object value)
static int s_objectTypeCount
Attribute[] GetAttributesFromCollection(AttributeCollection collection)
Dictionary< string, object > _currentValues
DbConnectionStringBuilder()
readonly bool _useOdbcRules
void Add(string keyword, object value)
virtual ICollection Values
PropertyDescriptorCollection GetProperties(Attribute[] attributes)
bool _browsableConnectionString
DbConnectionStringBuilder(bool useOdbcRules)
virtual bool ContainsKey(string keyword)
virtual bool TryGetValue(string keyword, [NotNullWhen(true)] out object? value)
static readonly DataCommonEventSource Log
static CultureInfo InvariantCulture
static StringComparer OrdinalIgnoreCase
static int Increment(ref int location)
void CopyTo(T[] array, int arrayIndex)
void Add(TKey key, TValue value)
new IEnumerator< T > GetEnumerator()
object? GetEditor(Type editorBaseType)
EventDescriptor? GetDefaultEvent()
object? GetPropertyOwner(PropertyDescriptor? pd)
PropertyDescriptorCollection GetProperties()
PropertyDescriptor? GetDefaultProperty()
EventDescriptorCollection GetEvents()
string? GetComponentName()
TypeConverter GetConverter()
AttributeCollection GetAttributes()
DesignerSerializationVisibility
DynamicallyAccessedMemberTypes