src/Misc/EFTools/XmlCore/Model/ModelManager.cs
/// <summary>
///     Get the EFArtifactSet for a particular Uri from the cache or null if it hasn't been loaded.
///     Virtual to allow mocking.
/// </summary>
Get the EFArtifactSet for a particular Uri from the cache or null if it hasn't been loaded.
Virtual to allow mocking.
Get the EFArtifactSet for a particular Uri from the cache or null if it hasn ' t been loaded . Virtual to allow mocking .
internal virtual EFArtifactSet GetArtifactSet(Uri uri)
        {
            lock (this)
            {
                EFArtifact artifact = null;
                _artifactsByUri.TryGetValue(uri, out artifact);
                if (artifact != null)
                {
                    List<EFArtifactSet> result = null;
                    if (_artifact2ArtifactSets.TryGetValue(artifact, out result))
                    {
                        Debug.Assert(result.Count == 1, "Support for an artifact spanning multiple sets is not yet implemented");
                        return result[0];
                    }
                }
                return null;
            }
        }
internal virtual EFArtifactSet GetArtifactSet ( Uri uri ) { lock ( this ) { EFArtifact artifact = null ; _artifactsByUri . TryGetValue ( uri , out artifact ) ; if ( artifact != null ) { List < EFArtifactSet > result = null ; if ( _artifact2ArtifactSets . TryGetValue ( artifact , out result ) ) { Debug . Assert ( result . Count == 1 , " " ) ; return result [ 0 ] ; } } return null ; } }
Get the EFArtifactSet for a particular Uri from the cache or null if it hasn't been loaded.
Get the EFArtifactSet for a particular Uri from the cache or null if it hasn ' t been loaded .
uri
Uri