title: Creating an instance of a interface in c#
body: <p>I am using an interface in C# and rather than write an entirely new class which implements that interface is it possible to just create an object which implements that interface? The interface is defined as</p>
  
  <pre><code>public interface ITokenStore
  {
  
      IToken CreateRequestToken(IOAuthContext context);
  
  
      IToken CreateAccessToken(IOAuthContext context);
  }
  </code></pre>
  
  <p>And I know in java I could something like</p>
  
  <pre><code>ITokenStore tokenStore = new ITokenStore()
      {
          IToken CreateRequestToken(IOAuthContext context) {
              IToken requestToken = null;
  
              return requestToken;
          }
  
          IToken CreateAccessToken(IOAuthToken context) {
              IToken accessToken = null;
  
              return accessToken;
          }
      };
  </code></pre>
  
  <p>Is there an equivalent way to instantiate in instance of an interface in c#?</p>