checks whether the given method is of type
(MethodInfo info)
| 680 | |
| 681 | // checks whether the given method is of type |
| 682 | public static bool IsIClosableClose(MethodInfo info) |
| 683 | { |
| 684 | return info.Name.Equals("Dispose") && info.DeclaringType.GetInterface("System.IDisposable") != null; |
| 685 | } |
| 686 | } |
| 687 | |
| 688 | // The class derived from DynamicObject. |