5 references to ArgumentCannotBeOfTypeVoid
System.Linq.Expressions (5)
System\Linq\Expressions\NewArrayExpression.cs (2)
141
throw Error.
ArgumentCannotBeOfTypeVoid
(nameof(type));
218
throw Error.
ArgumentCannotBeOfTypeVoid
(nameof(type));
System\Linq\Expressions\NewExpression.cs (1)
203
throw Error.
ArgumentCannotBeOfTypeVoid
(nameof(type));
System\Linq\Expressions\ParameterExpression.cs (1)
207
throw Error.
ArgumentCannotBeOfTypeVoid
(nameof(type));
System\Linq\Expressions\SwitchExpression.cs (1)
180
if (switchValue.Type == typeof(void)) throw Error.
ArgumentCannotBeOfTypeVoid
(nameof(switchValue));