Strict declarations for items(Et al)?

Iron Leonem

New member
Most of the declarations to reference item inventory products are declared with var (I assume for JS implementations?)- what are the strict declarations for Items, Item Categories, and Item Definitions?
 
All the source code is in C#, "var" was introduced in C# version 3: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/var

We use var constantly because it makes things incredibly easier when refactoring code.
The type of the variables are supposed to be obvious from their names.
If you aren't sure of the Type of a variable, or the type returned by a function, your IDE should be able to tell you when you hover over them with your mouse.

Item, ItemDefinition, ItemCategory are the types you asked about.

You should probably read this page too: https://opsive.com/support/documentation/ultimate-inventory-system/getting-started/terminology/
 
Top