PowerShell/PowerShellStandard

ValidateArgumentsAttribute.Validate method is not abstract

aetos382 opened this issue · 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.

[System.AttributeUsageAttribute((System.AttributeTargets)384)]
public abstract class ValidateArgumentsAttribute : System.Management.Automation.Internal.CmdletMetadataAttribute {
protected ValidateArgumentsAttribute() { }
protected virtual void Validate ( object arguments, System.Management.Automation.EngineIntrinsics engineIntrinsics ) { }
}

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