ArcGISRuntime.Desktop.Viewer.Managers.SampleManager.RemoveEmptySamples C# (CSharp) Метод

RemoveEmptySamples() приватный Метод

Remove samples that doesn't have a type registered i.e. cannot be shown.
private RemoveEmptySamples ( ) : void
Результат void
        private void RemoveEmptySamples()
        {
            _sampleStructureMap.Featured.RemoveAll(x => !DoesSampleTypeExists(x.Sample));

            // Remove samples that are empty ie. doesn't have code files
            foreach (var category in _sampleStructureMap.Categories)
            {
                foreach (var subCategory in category.SubCategories)
                {
                    var notFoundSamples = subCategory.Samples.Where(x => !DoesSampleTypeExists(x)).ToList();
                    foreach (var sampleToRemove in notFoundSamples)
                    {
                        subCategory.Samples.Remove(sampleToRemove);
                        subCategory.SampleNames.Remove(sampleToRemove.SampleName);
                    }
                }
            }
        }