Hannes Pavelka
It isn't rocket science. Well, unless of course you're NASA

Declaring Properties on interfaces

Wednesday, November 02, 2005 8:46 AM

Even though this is probably obvious I had to look it up today.

Declaring a property on interface in c# works like this:

public interface IFoo
{
   string Value { get; set; }
}

 



  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Feedback

No comments posted yet.


Post a comment