• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1012
  • 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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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