private static ITypeDescriptorContext GetTypeDescriptorContext(Padding paddingValue) { MyObjectWithMarginProperty obj = new MyObjectWithMarginProperty(); obj.Margin = paddingValue; PropertyDescriptor pd = TypeDescriptor.GetProperties(obj)["Margin"]; return(new FakeITypeDescriptorContext(pd, obj)); }
private static ITypeDescriptorContext GetTypeDescriptorContext (Padding paddingValue) { MyObjectWithMarginProperty obj = new MyObjectWithMarginProperty(); obj.Margin = paddingValue; PropertyDescriptor pd = TypeDescriptor.GetProperties (obj)["Margin"]; return new FakeITypeDescriptorContext (pd, obj); }