PowerShell / PowerShellStandard

MIT License
158 stars 24 forks source link

ValidateArgumentsAttribute.Validate method is not abstract #52

Open aetos382 opened 6 years ago

aetos382 commented 6 years ago

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

JamesWTruher commented 5 years ago

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