fork(2) download
  1. using System;
  2. using MyNamespace.One;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var item = new Product();
  9. Console.WriteLine(item is ILastModified); //RETURNS FALSE??!
  10. }
  11. }
  12.  
  13. interface ILastModified
  14. {
  15. DateTime LastModified { get; set; }
  16. }
  17.  
  18. namespace MyNamespace.One
  19. {
  20. public partial class Product
  21. {
  22. public int ID { get; set; }
  23. }
  24. }
  25.  
  26. namespace MyNamespace.Two
  27. {
  28. public partial class Product : ILastModified
  29. {
  30. public DateTime LastModified { get; set; }
  31. }
  32. }
Success #stdin #stdout 0.02s 33880KB
stdin
Standard input is empty
stdout
False