コード例 #1
0
 internal virtual bool TryGetKnownAssembly(
     Assembly assembly,
     object loaderCookie,
     EdmItemCollection itemCollection,
     out KnownAssemblyEntry entry)
 {
     return(this._assemblies.TryGetValue(assembly, out entry) && entry.HaveSeenInCompatibleContext(loaderCookie, itemCollection));
 }
コード例 #2
0
        internal void Add(Assembly assembly, KnownAssemblyEntry knownAssemblyEntry)
        {
            KnownAssemblyEntry knownAssemblyEntry1;

            if (this._assemblies.TryGetValue(assembly, out knownAssemblyEntry1))
            {
                this._assemblies[assembly] = knownAssemblyEntry;
            }
            else
            {
                this._assemblies.Add(assembly, knownAssemblyEntry);
            }
        }
コード例 #3
0
        internal bool TryGetKnownAssembly(
            Assembly assembly, object loaderCookie, EdmItemCollection itemCollection, out KnownAssemblyEntry entry)
        {
            if (!_assemblies.TryGetValue(assembly, out entry))
            {
                return false;
            }

            if (!entry.HaveSeenInCompatibleContext(loaderCookie, itemCollection))
            {
                return false;
            }

            return true;
        }
コード例 #4
0
 internal void Add(Assembly assembly, KnownAssemblyEntry knownAssemblyEntry)
 {
     KnownAssemblyEntry current;
     if (_assemblies.TryGetValue(assembly, out current))
     {
         Debug.Assert(
             current.SeenWithEdmItemCollection != knownAssemblyEntry.SeenWithEdmItemCollection &&
             knownAssemblyEntry.SeenWithEdmItemCollection,
             "should only be updating if we haven't seen it with an edmItemCollection yet.");
         _assemblies[assembly] = knownAssemblyEntry;
     }
     else
     {
         _assemblies.Add(assembly, knownAssemblyEntry);
     }
 }
コード例 #5
0
        internal void Add(Assembly assembly, KnownAssemblyEntry knownAssemblyEntry)
        {
            KnownAssemblyEntry current;

            if (_assemblies.TryGetValue(assembly, out current))
            {
                Debug.Assert(
                    current.SeenWithEdmItemCollection != knownAssemblyEntry.SeenWithEdmItemCollection &&
                    knownAssemblyEntry.SeenWithEdmItemCollection,
                    "should only be updating if we haven't seen it with an edmItemCollection yet.");
                _assemblies[assembly] = knownAssemblyEntry;
            }
            else
            {
                _assemblies.Add(assembly, knownAssemblyEntry);
            }
        }
コード例 #6
0
        internal bool TryGetKnownAssembly(
            Assembly assembly, object loaderCookie, EdmItemCollection itemCollection, out KnownAssemblyEntry entry)
        {
            if (!_assemblies.TryGetValue(assembly, out entry))
            {
                return(false);
            }

            if (!entry.HaveSeenInCompatibleContext(loaderCookie, itemCollection))
            {
                return(false);
            }

            return(true);
        }