Beispiel #1
0
        protected override void GetProperties(Hashtable propertyDescriptors)
        {
            base.GetProperties(propertyDescriptors);
            PropertyDescriptor descriptor = (PropertyDescriptor)propertyDescriptors["Connection Protocol"];

            Attribute[] array = new Attribute[descriptor.Attributes.Count];
            descriptor.Attributes.CopyTo(array, 0);
            ConnectionProtocolDescriptor descriptor2 = new ConnectionProtocolDescriptor(descriptor.Name, array);

            propertyDescriptors["Connection Protocol"] = descriptor2;
        }
		protected override void GetProperties( Hashtable propertyDescriptors ) {
			base.GetProperties( propertyDescriptors );
			PropertyDescriptor descriptor = (PropertyDescriptor)propertyDescriptors[ "Connection Protocol" ];
			Attribute[] array = new Attribute[ descriptor.Attributes.Count ];
			descriptor.Attributes.CopyTo( array, 0 );
			ConnectionProtocolDescriptor descriptor2 = new ConnectionProtocolDescriptor( descriptor.Name, array );
			propertyDescriptors[ "Connection Protocol" ] = descriptor2;
		}