FRBDK/Glue/GlueSaveClasses/Models/TypeConverters/FloatRectangleTypeConverter.cs
/// <summary>Retrieves the set of properties for this type. By default, a type does not return any properties. </summary>
/// <returns>The set of properties that should be exposed for this data type. If no properties should be exposed, this may return null. The default implementation always returns null.</returns>
/// <param name="context">A <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> through which additional context can be provided. </param>
/// <param name="value">The value of the object to get the properties for. </param>
/// <param name="attributes">An array of <see cref="T:System.Attribute" /> objects that describe the properties. </param>
/// <filterpriority>1</filterpriority>
Retrieves the set of properties for this type. By default, a type does not return any properties.
Retrieves the set of properties for this type . By default a type does not return any properties .
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
		{
            Type typeFromHandle = typeof(FloatRectangle);
            PropertyDescriptorCollection propertyDescriptorCollection = new PropertyDescriptorCollection(new PropertyDescriptor[]
			{
				new FieldPropertyDescriptor(typeFromHandle.GetField("X")),
				new FieldPropertyDescriptor(typeFromHandle.GetField("Y")),
				new FieldPropertyDescriptor(typeFromHandle.GetField("Width")),
				new FieldPropertyDescriptor(typeFromHandle.GetField("Height"))
			});
            propertyDescriptorCollection = propertyDescriptorCollection.Sort(new string[]
			{
				"X",
				"Y",
				"Width",
				"Height",
			});
            return propertyDescriptorCollection;
		}
public override PropertyDescriptorCollection GetProperties ( ITypeDescriptorContext context , object value , Attribute [ ] attributes ) { Type typeFromHandle = typeof ( FloatRectangle ) ; PropertyDescriptorCollection propertyDescriptorCollection = new PropertyDescriptorCollection ( new PropertyDescriptor [ ] { new FieldPropertyDescriptor ( typeFromHandle . GetField ( " " ) ) , new FieldPropertyDescriptor ( typeFromHandle . GetField ( " " ) ) , new FieldPropertyDescriptor ( typeFromHandle . GetField ( " " ) ) , new FieldPropertyDescriptor ( typeFromHandle . GetField ( " " ) ) } ) ; propertyDescriptorCollection = propertyDescriptorCollection . Sort ( new string [ ] { " " , " " , " " , " " , } ) ; return propertyDescriptorCollection ; }
Retrieves the set of properties for this type.
Retrieves the set of properties for this type .
The set of properties that should be exposed for this data type. If no properties should be exposed, this may return null. The default implementation always returns null.
The set of properties that should be exposed for this data type . If no properties should be exposed this may return null . The default implementation always returns null .
context
ITypeDescriptorContext
A  through which additional context can be provided.
A through which additional context can be provided .
value
object
The value of the object to get the properties for.
The value of the object to get the properties for .
attributes
Attribute[]
An array of  objects that describe the properties.
An array of objects that describe the properties .
filterpriority
None