6 references to new
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\ExpressionContext.cs (1)
34
public ExpressionContext(CodeExpression expression, Type expressionType, object owner) :
this
(expression, expressionType, owner, null)
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
180
ExpressionContext tree =
new
(propertyRef, property.PropertyType, value, propertyValue);
System.Windows.Forms.Design.Tests (4)
System\ComponentModel\Design\Serialization\ExpressionContextTests.cs (4)
20
ExpressionContext context =
new
(expression, expressionType, owner, presetValue);
46
Assert.Throws<ArgumentNullException>("expression", () => new
ExpressionContext
(null, typeof(int), new object(), new object()));
52
Assert.Throws<ArgumentNullException>("expressionType", () => new
ExpressionContext
(new CodeExpression(), null, new object(), new object()));
58
Assert.Throws<ArgumentNullException>("owner", () => new
ExpressionContext
(new CodeExpression(), typeof(int), null, new object()));