Method
GetParamsFromJsMethodForDefinitions
(dynamic method, bool isAsync = false)
Source from the content-addressed store, hash-verified
| 375 | } |
| 376 | |
| 377 | public static string GetParamsFromJsMethodForDefinitions(dynamic method, bool isAsync = false) |
| 378 | { |
| 379 | StringBuilder sb = new StringBuilder(); |
| 380 | string commaString = string.Empty; |
| 381 | foreach (var paramInfo in method.GetParameters()) |
| 382 | { |
| 383 | sb.Append(commaString); |
| 384 | sb.Append(paramInfo.Name); |
| 385 | commaString = ", "; |
| 386 | } |
| 387 | |
| 388 | if (isAsync) |
| 389 | { |
| 390 | sb.Append(commaString); |
| 391 | sb.Append("callback"); |
| 392 | } |
| 393 | |
| 394 | return sb.ToString(); |
| 395 | } |
| 396 | |
| 397 | public static string GetParamsFromTsMethodForDefinitions(dynamic method, bool isAsync = false) |
| 398 | { |
Tested by
no test coverage detected