Closed drunkcod closed 11 years ago
interface IHasValue<T> { T Value { get; } } struct MyValueType : IHasValue<string> { public string Value { get; set; } } public void struct_with_interface_member_access() { var thing = new MyValueType { Value = "Hello World" }; Verify.That(() => thing.Value == thing.Value); }