Dynamo.Graph.Workspaces.WorkspaceModel.GetModelsInternal C# (CSharp) Method

GetModelsInternal() private method

Gets model list by their GUIDs
private GetModelsInternal ( IEnumerable modelGuids ) : IEnumerable
modelGuids IEnumerable Identifiers of the requested models.
return IEnumerable
        private IEnumerable<ModelBase> GetModelsInternal(IEnumerable<Guid> modelGuids)
        {
            var foundModels = new List<ModelBase>();

            foreach (var modelGuid in modelGuids)
            {
                var foundModel = GetModelInternal(modelGuid);
                if (foundModel != null)
                    foundModels.Add(foundModel);
            }

            return foundModels;
        }
WorkspaceModel