Ejemplo n.º 1
0
 public static bool Is <T>(
     this DomainObject domainObject
     ) where T : class
 => domainObject.Object is T;
Ejemplo n.º 2
0
 public static T Cast <T>(
     this DomainObject domainObject
     ) where T : class
 => (T)domainObject.Object;
Ejemplo n.º 3
0
 public static T As <T>(
     this DomainObject domainObject
     ) where T : class
 => domainObject.Object as T;