Пример #1
0
 public Object Instantiate()
 {
     try
     {
         return(_fastClass.NewInstance());
     }
     catch (TargetInvocationException e)
     {
         var message = string.Format("Unexpected exception encountered invoking newInstance on class '{0}': {1}",
                                     _fastClass.TargetType.FullName,
                                     e.InnerException.Message);
         Log.Error(message, e);
         return(null);
     }
 }