/// <summary>
 ///     The set method type.
 /// </summary>
 private void SetMethodType()
 {
     if (TargetMethod.IsAsync())
     {
         MethodType = TargetMethod.IsAsyncWithResult()
             ? MethodTypeOptions.AsyncFunction
             : MethodTypeOptions.AsyncAction;
     }
     else
     {
         MethodType = TargetMethod.HasReturnValue()
             ? MethodTypeOptions.SyncFunction
             : MethodTypeOptions.SyncAction;
     }
 }