FRBDK/Glue/GlueSaveClasses/Models/TypeConverters/FloatRectangleTypeConverter.cs
/// <summary>Creates an instance of this type given a set of property values for the object. This is useful for objects that are immutable but still want to provide changeable properties.</summary>
/// <returns>The newly created object, or null if the object could not be created. The default implementation returns null.</returns>
/// <param name="context">A <see cref="T:System.ComponentModel.ITypeDescriptorContext" /> through which additional context can be provided. </param>
/// <param name="propertyValues">A dictionary of new property values. The dictionary contains a series of name-value pairs, one for each property returned from a call to the <see cref="M:System.Drawing.RectangleConverter.GetProperties(System.ComponentModel.ITypeDescriptorContext,System.Object,System.Attribute[])" /> method. </param>
/// <filterpriority>1</filterpriority>
Creates an instance of this type given a set of property values for the object. This is useful for objects that are immutable but still want to provide changeable properties.
Creates an instance of this type given a set of property values for the object . This is useful for objects that are immutable but still want to provide changeable properties .
public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
		{
			if (propertyValues == null)
			{
				throw new ArgumentNullException("propertyValues");
			}
			object obj = propertyValues["X"];
			object obj2 = propertyValues["Y"];
			object obj3 = propertyValues["Width"];
			object obj4 = propertyValues["Height"];
			if (obj == null || obj2 == null || obj3 == null || obj4 == null || !(obj is float) || !(obj2 is float) || !(obj3 is float) || !(obj4 is float))
			{
				throw new ArgumentException("PropertyValueInvalidEntry");
			}
			return new FloatRectangle((float)obj, (float)obj2, (float)obj3, (float)obj4);
		}
public override object CreateInstance ( ITypeDescriptorContext context , IDictionary propertyValues ) { if ( propertyValues == null ) { throw new ArgumentNullException ( " " ) ; } object obj = propertyValues [ " " ] ; object obj2 = propertyValues [ " " ] ; object obj3 = propertyValues [ " " ] ; object obj4 = propertyValues [ " " ] ; if ( obj == null || obj2 == null || obj3 == null || obj4 == null || ! ( obj is float ) || ! ( obj2 is float ) || ! ( obj3 is float ) || ! ( obj4 is float ) ) { throw new ArgumentException ( " " ) ; } return new FloatRectangle ( ( float ) obj , ( float ) obj2 , ( float ) obj3 , ( float ) obj4 ) ; }
Creates an instance of this type given a set of property values for the object.
Creates an instance of this type given a set of property values for the object .
The newly created object, or null if the object could not be created. The default implementation returns null.
The newly created object or null if the object could not be created . The default implementation returns null .
context
ITypeDescriptorContext
A  through which additional context can be provided.
A through which additional context can be provided .
propertyValues
IDictionary
A dictionary of new property values. The dictionary contains a series of name-value pairs, one for each property returned from a call to the  method.
A dictionary of new property values . The dictionary contains a series of name - value pairs one for each property returned from a call to the method .
filterpriority
None