I'm having trouble accessing my private class "inventory" in my class library, from my console application. I have referenced it and i can access "inventory" when its set to public class. Are there any ways to access it, when "inventory" is set to private?
using System;
using System.Collections.Generic;
using System.Text;
namespace InventoryManagementDND
{
class Inventory
{
The error feedback i get from visual studio is inaccessible due to its protection level.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using InventoryManagementDND;
namespace InventoryRunProgram
{
class Program
{
static void Main(string[] args)
{
int test = 0;
Inventory I1 = new Inventory();
Solution explorer setup with the class library on top, console app on bottom