can we create an empty interface with no definitions? If
so, how it should be called in the class?
Answer Posted / mohit bhandari
Yes we can create an empty interface.Empty interface is
called a marker interface.These interfaces are generally
used as way of identifying a group of types. If this
identification will occur at runtime, the correct way to
accomplish this is to use a custom attribute. Use the
presence or absence of the attribute, or the attribute's
properties, to identify the target types.As there is no
method in marker interface,So we don't need to call it.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
You have got 1 million parking slots. At a time a parking slot can be free or not. To get next slot easily which data structure to implement?
What is a dbml?
Is c sharp and c# are same?
Can enum have methods c#?
Difference between StackPanel and RelativePanel ?
In gridview in editmode if we want to display information in one combobox based on
What are Uses of CLR
What is desktop GUI application?
Explain types of comment in c# with examples
How do you remove white spaces from a string?
Is c# code is managed or unmanaged code?
What is data binding with example?
what class is underneath the sortedlist class?
What is the difference between selection and projection?
What is expandoobject in c#?