Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetProperties() [3/6]

PropertyDescriptorCollection System.Data.Common.DbConnectionStringBuilder.GetProperties ( Attribute[] attributes)
inlineprivate

Definition at line 479 of file DbConnectionStringBuilder.cs.

480 {
482 if (attributes == null || attributes.Length == 0)
483 {
484 return properties;
485 }
487 int num = 0;
488 foreach (PropertyDescriptor item in properties)
489 {
490 bool flag = true;
491 foreach (Attribute attribute in attributes)
492 {
493 Attribute attribute2 = item.Attributes[attribute.GetType()];
494 if ((attribute2 == null && !attribute.IsDefaultAttribute()) || (attribute2 != null && !attribute2.Match(attribute)))
495 {
496 flag = false;
497 break;
498 }
499 }
500 if (flag)
501 {
502 array[num] = item;
503 num++;
504 }
505 }
507 Array.Copy(array, array2, num);
509 }

References System.array, System.Array.Copy(), System.ComponentModel.PropertyDescriptorCollection.Count, System.Data.Common.DbConnectionStringBuilder.GetProperties(), and System.item.