TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Shubha Mondal
NA
149
1.2k
Calling interface driven method from one project to another
Aug 21 2017 6:54 AM
namespace Project1
{
public interface IInterface1
{
void Method();
}
public interface IInterface2 : IInterface1
{
void Method();
void Method2();
}
// Here we are implementing methods for get and sent data to database
public class GetSentData: IInterface1
(
void Method();
void Method2();
)
}
note: We are making a .dll of above mentions interfaces and class.
//This is a another solution
//I add reference of Project1 into project2
Namespace project2
{
public class Acess
{
//Here we want to call above class method by using the interface driven class
IInterface1 myinterface=new GetSentData();
myinterface.Method();
//Like This but am getting error as: Object is not set to an instance of object
}
}
//Please Suggest with your valuable answers
Reply
Answers (
1
)
unable to connect to the remote server c# smtp gmail
Fill circle with animating waves