Gets the full member signature name (can be displayed in UI). The full signature of the method including access level, type, name and method parameters.
()
| 624 | /// </summary> |
| 625 | /// <returns>The full signature of the method including access level, type, name and method parameters.</returns> |
| 626 | public string GetSignature() |
| 627 | { |
| 628 | var sb = new StringBuilder(); |
| 629 | if (IsPublic) |
| 630 | sb.Append("public "); |
| 631 | if (IsStatic) |
| 632 | sb.Append("static "); |
| 633 | else if (IsVirtual) |
| 634 | sb.Append("virtual "); |
| 635 | sb.Append(ValueType.Name); |
| 636 | sb.Append(' '); |
| 637 | sb.Append(Name); |
| 638 | if (IsMethod) |
| 639 | { |
| 640 | sb.Append('('); |
| 641 | var parameters = GetParameters(); |
| 642 | for (int i = 0; i < parameters.Length; i++) |
| 643 | { |
| 644 | if (i != 0) |
| 645 | sb.Append(", "); |
| 646 | ref var param = ref parameters[i]; |
| 647 | param.ToString(sb); |
| 648 | } |
| 649 | sb.Append(')'); |
| 650 | } |
| 651 | return sb.ToString(); |
| 652 | } |
| 653 | |
| 654 | /// <summary> |
| 655 | /// Gets the member value of a specified object. |