Example #1
0
 public static TWrapper WrapAs <TWrapper>(this IHandle <Type> handle)
     where TWrapper : Type
 {
     if (handle.GetInternalPointer() == IntPtr.Zero)
     {
         return(null);
     }
     return((TWrapper)handle.ToWrapperType());
 }