Changeset 1778
- Timestamp:
- 11/23/08 02:13:41 (3 years ago)
- Files:
-
- 1 modified
-
cobra/trunk/Source/Cobra.Lang/Native.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Cobra.Lang/Native.cs
r1774 r1778 1137 1137 // HACK. TODO. This needs to be generalized where extension methods can be registered with the dynamic binder. Will/does DLR have something like this? 1138 1138 if (methodName == "Swap" && obj is System.Collections.IList) { 1139 Type extension = Type.GetType("Cobra.Lang.Extend_IList_ CobraLang");1139 Type extension = Type.GetType("Cobra.Lang.Extend_IList_Extensions"); 1140 1140 Type extendedType = typeof(System.Collections.IList); // this reference could be put with the extension using an attribute 1141 1141 return InvokeMethodFromExtension(extension, extendedType, obj, methodName, argsTypes, args);



