-
Notifications
You must be signed in to change notification settings - Fork 15
IsInputAttributePresent
Severity - Warning
Check method - Here
The IsInputAttributePresent
check ensures that an input parameter has a matching Input
or InputFromProperty
attribute explaining what the input is required for users.
You can add an Input
attribute with the following syntax sitting above the method:
[Input("variableName", "Your description here")]
Alternatively, if the methods returning object has a property which contains a description which matches the input parameter, you can use the InputFromProperty
attribute with the following syntax:
[InputFromProperty("variableName")]
Or, if your methods returning object has a property which contains a description which matches the input parameter, but the variable name entering the method is not named the same as the object's property, you can use the InputFromProperty
to match the two, like so:
[InputFromProperty("variableName", "objectPropertyName")]
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.
-
Introduction to the BHoM:
What is the BHoM for?
Structure of the BHoM
Technical Philosophy of the BHoM -
Getting Started:
Installing the BHoM
Using the BHoM
Submitting an Issue
Getting started for developers -
Use GitHub & Visual Studio:
Using the SCRUM Board
Resolving an Issue
Avoiding Conflicts
Creating a new Repository
Using Visual Studio
Using Visual Studio Code -
Contribute:
The oM
The Engine
The Adapter
The Toolkit
The UI
The Tests -
Guidelines:
Unit convention
Geometry
BHoM_Engine Classes
The IImmutable Interface
Handling Exceptional Events
BHoM Structural Conventions
BHoM View Quality Conventions
Code Versioning
Wiki Style
Coding Style
Null Handling
Code Attributes
Creating Icons
Changelog
Releases and Versioning
Open Sourcing Procedure
Dataset guidelines -
Foundational Interfaces:
IElement Required Extension Methods -
Continuous Integration:
Introduction
Check-PR-Builds
Check-Core
Check-Installer -
Code Compliance:
Compliance -
Further Reading:
FAQ
Structural Adapters
Mongo_Toolkit
Socket_Toolkit