Hi,
Consider the following project structure. I have a single solution with two projects. One project is a web service class. The second is a windows application. The windows application has a reference to the web service. The web service has a single web method which i will call in the windows application. Additionally, my web service has a public enum (or class) which I would like to be able to reference in the windows application. However, unless I use the enum (or class) as a parameter of or return type of the web method, I cannot access the enum (or class) in the windows application.
Is there some way to make any public class or public enum in a web service project available to consumers The workaround I have found is to simply add a parameter into my webmethod which acts as a dummy reference, so that the web reference in the windows project generates a local class to reference it.
It seems to me that making a class public in an assembly should make that class public to anything that references it. This works fine in a windows environment (like a windows project referencing a DLL) but not in a web environment.
Thanks for any help!
Kurt
.NET Development27
|