// Construct a JFunctionStaticGlue. methodInfo should be // a MethodInfo or a MethodBase[]. internal JFunctionStaticGlue( CachedTypeInfo typeInfo, string methodName, object methodInfo ) : base(null, null) { this.typeInfo = typeInfo; this.methodName = methodName; this.methodInfo = methodInfo; } // JFunctionStaticGlue constructor
} // CachedTypeInfo constructor // Return a CachedTypeInfo object for the given type. internal static CachedTypeInfo GetInfoForType(Type targetType, bool useStatic) { System.Collections.Hashtable hashTable = (useStatic) ? staticCache : instanceCache; if (hashTable.ContainsKey(targetType)) return (CachedTypeInfo) hashTable[targetType]; CachedTypeInfo info = new CachedTypeInfo(targetType, useStatic); hashTable[targetType] = info; return info; } // GetInfoForType