ArcMapAddinDistanceAndDirection.Models.FeatureClassUtils.DoesFeatureClassExist C# (CSharp) Méthode

DoesFeatureClassExist() private méthode

Determines if selected feature class already exists
private DoesFeatureClassExist ( string gdbPath, string fcName ) : bool
gdbPath string Path to the file gdb
fcName string Name of selected feature class
Résultat bool
        private bool DoesFeatureClassExist(string gdbPath, string fcName)
        {
            List<string> dsNames = GetAllDatasetNames(gdbPath);

            if (dsNames.Contains(fcName))
                return true;

            return false;
        }