using System;
using MyNamespace.One;
public class Test
{
public static void Main()
{
var item = new Product();
Console.WriteLine(item is ILastModified); //RETURNS FALSE??!
}
}
interface ILastModified
{
DateTime LastModified { get; set; }
}
namespace MyNamespace.One
{
public partial class Product
{
public int ID { get; set; }
}
}
namespace MyNamespace.Two
{
public partial class Product : ILastModified
{
public DateTime LastModified { get; set; }
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBNeU5hbWVzcGFjZS5PbmU7CgpwdWJsaWMgY2xhc3MgVGVzdAp7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCiAgICB7CiAgICAgICAgdmFyIGl0ZW0gPSBuZXcgUHJvZHVjdCgpOwogICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKGl0ZW0gaXMgSUxhc3RNb2RpZmllZCk7IC8vUkVUVVJOUyBGQUxTRT8/IQogICAgfQp9CiAKaW50ZXJmYWNlIElMYXN0TW9kaWZpZWQKewogICAgRGF0ZVRpbWUgTGFzdE1vZGlmaWVkIHsgZ2V0OyBzZXQ7IH0KfQoKbmFtZXNwYWNlIE15TmFtZXNwYWNlLk9uZQp7CiAgICBwdWJsaWMgcGFydGlhbCBjbGFzcyBQcm9kdWN0CiAgICB7CiAgICAgICAgcHVibGljIGludCBJRCB7IGdldDsgc2V0OyB9CiAgICB9Cn0KCm5hbWVzcGFjZSBNeU5hbWVzcGFjZS5Ud28KewogICAgcHVibGljIHBhcnRpYWwgY2xhc3MgUHJvZHVjdCA6IElMYXN0TW9kaWZpZWQKICAgIHsKICAgICAgICBwdWJsaWMgRGF0ZVRpbWUgTGFzdE1vZGlmaWVkIHsgZ2V0OyBzZXQ7IH0KICAgIH0KfQ==