C# Interface without static typing
<p>Is there way to do something along these lines?</p>

<pre><code>interface Iface
{
  [anytype] Prop1 { get; }
  [anytype] Prop2 { get; }
}

class Class1 : Iface
{
  public string Prop1 { get; }
  public int Prop2 { get; }
}

class Class2 : Iface
{
  public int Prop1 { get; }
  public bool? Prop2 { get; }
}
</code></pre>

<p>I don't care about the type of the properties, I just need the properties to be available.  This doesn't have to be implemented with an interface, just using that as an example.</p>
