New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: C#

R# IEnumerable<string> basic class implementation

25 Views
Copy Code Show/Hide Line Numbers
   1:  public class ErrorModel : IEnumerable<string>
   2:  {
   3:      public IEnumerator<string> GetEnumerator()
   4:      {
   5:          throw new NotImplementedException();
   6:      }
   7:   
   8:      IEnumerator IEnumerable.GetEnumerator()
   9:      {
  10:          return GetEnumerator();
  11:      }
  12:   
  13:      #region IEnumerable<string> Members
  14:   
  15:      IEnumerator<string> IEnumerable<string>.GetEnumerator()
  16:      {
  17:          throw new NotImplementedException();
  18:      }
  19:   
  20:      #endregion
  21:  }
by Jeremy Brayton
  March 17, 2010 @ 9:01am
Tags:

Add a comment


Report Abuse
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate