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