Interfaces

  • Thread starter Thread starter mark
  • Start date Start date
M

mark

Pretty basic question here... Where do you define an interface? I mean,
what file does the definition go in, like a separate class that's just full
of interface definitions, or what ?
 
Mark,

You can define it in its own file, if you wish (this is what I do and
recommend). As far as assembly distribution, typically, if you have a
distributed system (with remote components), then it is a good idea to
define the interface somewhere else, and then have the implementation and
the client both reference that assembly.

Hope this helps.
 
Hi Mark,

It's always a good practice to have interfaces/types to be defined in
separate files.

If you are going to develop an SDK kind of item, then you might want to have
all interfaces defined in that assembly and then let your client use that.

HTH,
Rakesh Rajan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top