Skip to content

IsInputAttributePresent

Fraser Greenroyd edited this page Apr 24, 2020 · 5 revisions

Summary

Severity - Warning

Check method - Here

Details

The IsInputAttributePresent check ensures that an input parameter has a matching Input attribute explaining what the input is required for users.

You can add a Input attribute with the following syntax sitting above the method:

[Input("variableName", "Your description here")]

If you have not used any attributes in your file previously, you may need to add the following using:

using BH.oM.Reflection.Attributes;

You may also need to add a reference to the Reflection_oM to your project if you have not previously used it.

Clone this wiki locally