bool IParameterMetadataProvider.UsesCmdletBinding() { bool flag = false; if (this.Parameters != null) { return(ParamBlockAst.UsesCmdletBinding(this.Parameters)); } if (this.Body.ParamBlock != null) { flag = ((IParameterMetadataProvider)this.Body).UsesCmdletBinding(); } return(flag); }
bool IParameterMetadataProvider.UsesCmdletBinding() { bool flag = false; if (this.ParamBlock != null) { flag = (from attribute in this.ParamBlock.Attributes where typeof(CmdletBindingAttribute).Equals(attribute.TypeName.GetReflectionAttributeType()) select attribute).Any <AttributeAst>(); if (!flag) { flag = ParamBlockAst.UsesCmdletBinding(this.ParamBlock.Parameters); } } return(flag); }