Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.84 KB | None | 0 0
  1. namespace Foobar
  2. {
  3.     public interface IAddress
  4.     {
  5.         char CountryCode { get; set; }
  6.         string Name { get; set; }
  7.         string Surname { get; set; }
  8.         string Address { get; set; }
  9.         string City { get; set; }
  10.         short Plz { get; set; }
  11.         short HouseNumber { get; set; }
  12.     }
  13.  
  14.     public static class IAddressExtensions
  15.     {
  16.         public static void SetCountryCode(this IAddress address)
  17.         {
  18.             // ...
  19.         }
  20.     }
  21.    
  22.     public class Address : IAddress
  23.     {
  24.         public char CountryCode { get; set; }
  25.         public string Name { get; set; }
  26.         public string Surname { get; set; }
  27.         public string Address { get; set; }
  28.         public string City { get; set; }
  29.         public short Plz { get; set; }
  30.         public short HouseNumber { get; set; }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement