Esempio n. 1
0
		// 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
Esempio n. 2
0
		} // 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