Skip to content

Instantly share code, notes, and snippets.

@msiddiqi
Created September 29, 2012 20:56
public override void SetValue(object component, object value)
{
if (!value.GetType().IsAssignableFrom(propertyType))
{
throw new System.Exception("Invalid type to assign");
}
propertyValue = (T)value;
OnValueChanged(component, new EventArgs());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment