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