Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1.     public class ProposalContainer : IProposalsContainer
  2.     {
  3.         private static ProposalContainer _instance;
  4.         private static ProposalsContext _proposalContext;
  5.  
  6.         public static ProposalsContext ProposalContext
  7.         {
  8.             get { return _proposalContext ?? (_proposalContext = new ProposalsContext());
  9.             }
  10.         }
  11.  
  12.         public static ProposalContainer Instance => _instance ?? (_instance = new ProposalContainer());
  13.  
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement