C# Container how to add int variable?

Hi guys. Still new to C#. I do now know how to create a container and add components to it. Is there a way to add a integer to a container? For example, I have: Component Item1 = new Component(); inventory inventoryObject = new inventory(); inventoryObject.iContainer.Add(Item1); This does add a component... show more Hi guys.

Still new to C#. I do now know how to create a container and add components to it. Is there a way to add a integer to a container?

For example, I have:

Component Item1 = new Component();

inventory inventoryObject = new inventory();

inventoryObject.iContainer.Add(Item1);

This does add a component (Item1) successfully. Is there a way to add a integer though? Thank you in advance.
Update: Oh yes, above all that other code I have:

public class inventory
{
public Container iContainer = new Container();
}
2 answers 2