Hi All,
I'm new to VS.net, coming from Delphi, and there is something that I'm
trying to clarify in my head about VS.net.
Suppose you had a class Employee (Name, Age, Title, etc).
Lets further assume that you are creating a web service, with a .net
windows application as a client to that web service. Given that you
wish to share the structure of the Employee class between client and
web service (which occurs with the auto generation of a proxy class),
all is fine.
Is there a way of structuring your code so that you can make use of
only one copy of the Employee class? Im not trying to get the method
itself over the web service, but rather allowing my already defined
class to be used in two places (the web service and the client
application).
For instance, can you call upon a method (say calculateSalary [which
perhaps adds 2 numbers together]) without going to the webservice and
hence back to the original class itself for the method (which is not
transferred over the web service)? So we would compile the class into
two separate assemblies?
Thanks, Rob