Esempio n. 1
0
        private static ITypeDescriptorContext GetTypeDescriptorContext(Padding paddingValue)
        {
            MyObjectWithMarginProperty obj = new MyObjectWithMarginProperty();

            obj.Margin = paddingValue;
            PropertyDescriptor pd = TypeDescriptor.GetProperties(obj)["Margin"];

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