PowerShellStandard icon indicating copy to clipboard operation
PowerShellStandard copied to clipboard

ValidateArgumentsAttribute.Validate method is not abstract

Open aetos382 opened this issue 7 years ago • 1 comments

ValidateArgumentsAttribute.Validate method is actually an abstract method, but it is not abstract in the reference assembly. So the code that calls the ValidateArgumentsAttribute.Validate method will not produce a compile error, but an exception will be thrown at run time.

https://github.com/PowerShell/PowerShellStandard/blob/3e302f8b22d6745bf3585ad12dbee848a970724f/src/5/System.Management.Automation-lib.cs#L6775-L6781

aetos382 avatar Sep 21 '18 03:09 aetos382

thanks! @aetos382 please let me know if you find more!

JamesWTruher avatar Oct 10 '18 21:10 JamesWTruher