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