This is really basic but how do you include something, like literally what buttons on the Epicor interface do that? Where do I put the code to include? What does the code look like that I must include to allow me to use this class, or really any other class I find? Usings and includes is scary atm, I have no examples to work from and don’t know the syntax. I tried both using and references but I’m stuck.
What I’m doing is calling an API I created and it’s not doing what I expect so I want to troubleshoot by seeing what my endpoint is returning by popping open up a message box when the rest call is finished. My endpoint works in POSTMAN just fine so I want to see what Epicor is doing with it.
Does the grayed out Add/Remove mean they are always loaded?
So according to that webheadercollection is part of system in .net 4.8, which is always loaded? So is the error saying I’m missing the assembly wrong? Or am I just not declaring it out of the system in my C# code?
Namespaces help organize and isolate classes, to instantiate a class you need to include the namespace(as well as reference the assembly). A using statement is an alternative to fully qualifying the class and namespace every time you instantiate. You can have two classes named the same thing, in this case you would need to use the fully qualified namespace to differentiate the two.
Also, using statements can be used to control how many of the classes in an assembly are actually loaded at runtime.