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
Shashank Saxena
NA
77
671
Interface with member variables with datatype as interface
Sep 21 2017 2:31 AM
Can an Interface in C# have a data member with the type of interface itself, which is possible with classes? For example: Class SomeClass { //Some properties defined //Method follows as void method1 (SomeClass var1, int var2) { //set of statements to be executed }} Here in question, I am referring to the type of parameter passed in the method of class which is of same type as of class itself. Q. So, is this possible with an Interface as well?
Reply
Answers (
3
)
Usage of Threading in .Net 4.0 with WCF
How to convert date into jason