Wiki

Changeset 1778

Show
Ignore:
Timestamp:
11/23/08 02:13:41 (3 years ago)
Author:
Chuck.Esterbrook
Message:

Fix another problem caused by the Cobra.Lang refactoring.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/Cobra.Lang/Native.cs

    r1774 r1778  
    11371137            // HACK. TODO. This needs to be generalized where extension methods can be registered with the dynamic binder. Will/does DLR have something like this? 
    11381138            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"); 
    11401140                Type extendedType = typeof(System.Collections.IList); // this reference could be put with the extension using an attribute 
    11411141                return InvokeMethodFromExtension(extension, extendedType, obj, methodName, argsTypes, args);