• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1017
  • Last Modified:

Define Interface Fields

I am curious if there is a way to define a field that is required in an interface.  Some of the .NET interfaces, such as the one I posted below, have explicit members that are created when you implement the interface but I wasn't sure if this was specific to the code behind in Visual Studios, or if there is a way to force this through attributes, special declarations, etc.  While an abstract base class could do this for me, I would prefer at this point to maintain this as an interface.
#region INotifyPropertyChanged Members
public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
#endregion

Open in new window

0
Nathan_Northcutt
Asked:
Nathan_Northcutt
1 Solution
 
Nathan_NorthcuttAuthor Commented:
ignore
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now