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