internal static InterfaceType Create(Type type, IInterfaceTypeChecker typeChecker)
{
lock (_cacheLock)
{
if (type == null) return new InterfaceType(); // Possible, because a Type could be loaded from an XML File which does not exists in this Zetbox instance
if (_cache.ContainsKey(type)) return _cache[type];
var ift = new InterfaceType(type, typeChecker);
_cache[type] = ift;
return ift;
}
}