473,320 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

can an interface reside in an assembly other than one whose members it is describing?

If I have two assemblies in a VSNET project and create an interface, does
the interface have to reside in the assembly whose class methods it
describes?
How do I reference interfaces in the project?
Are there any good articles that describe interfaces from a good
functional/operational/Visual Studio .NET point of view?

I am working on a multi-project solution whose references are a combination
of project references and file references. Throw in a circular reference
with the need to create late bound objects, and it makes for an interesting
challenge.

appreciatively,
hazz
Nov 16 '05 #1
2 1243
If possible move the interface into a seperate project. In the projects that
implement the interface, add a project reference to the interface project.

--
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
"Hazzard" <ha**@sonic.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
If I have two assemblies in a VSNET project and create an interface, does
the interface have to reside in the assembly whose class methods it
describes?
How do I reference interfaces in the project?
Are there any good articles that describe interfaces from a good
functional/operational/Visual Studio .NET point of view?

I am working on a multi-project solution whose references are a combination of project references and file references. Throw in a circular reference
with the need to create late bound objects, and it makes for an interesting challenge.

appreciatively,
hazz

Nov 16 '05 #2
Thank you Sijin.
So the linking process at build time will locate the interface because it
has been referenced and resolve the contract between the interface and the
class that implements the interface.
What is the reason for moving the interface into a separate project? I am
guessing it has something to do with not being bound to the
component/assembly which it is describing?
Thanks again!
-Greg

"Sijin Joseph" <si*********@hotmail.com> wrote in message
news:OI*************@TK2MSFTNGP09.phx.gbl...
If possible move the interface into a seperate project. In the projects that implement the interface, add a project reference to the interface project.

--
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
"Hazzard" <ha**@sonic.net> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
If I have two assemblies in a VSNET project and create an interface, does the interface have to reside in the assembly whose class methods it
describes?
How do I reference interfaces in the project?
Are there any good articles that describe interfaces from a good
functional/operational/Visual Studio .NET point of view?

I am working on a multi-project solution whose references are a

combination
of project references and file references. Throw in a circular reference
with the need to create late bound objects, and it makes for an

interesting
challenge.

appreciatively,
hazz


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
6
by: Sgt. Sausage | last post by:
I know it's not possible, but I need a protected internal interface: protected internal interface ISomeInterface{ // yadda yadda yadda } Basically, I need an interface that is completely...
21
by: Helge Jensen | last post by:
I've got some data that has Set structure, that is membership, insert and delete is fast (O(1), hashing). I can't find a System.Collections interface that matches the operations naturally offered...
1
by: ChrisA | last post by:
I have an asm that implements an interface. Since the asm will be loaded dynamically, where should the interface be defined so that the client and implementation can both use it? It seems like...
2
by: mats | last post by:
Hi! This is a quite involved question concerning two dll's that are consumed from a console application. The first dll is called base.dll and is compiled in mixed mode (managed and unmanaged...
4
by: Sohum | last post by:
Hi I'm reasonably new to this group, and to programming in general. I'd like to know, can you selectively scope within an interface? For example: Public Interface MyInterface Friend...
5
by: Ben Voigt | last post by:
Getting a C1001 internal error off the following code: I've found an alternate means of making the Node property accessible in the parent class only using a public interface, private...
52
by: Ben Voigt [C++ MVP] | last post by:
I get C:\Programming\LTM\devtools\UselessJunkForDissassembly\Class1.cs(360,27): error CS0535: 'UselessJunkForDissassembly.InvocableInternals' does not implement interface member...
7
by: WTH | last post by:
I am now aware (I am primarily a C++ developer) that in C# if you reference the same interface from the same file in two different projects the types are actually incompatible. I found this out...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.