ArcGISCompare.GeoDbProcs.GetFieldEnumeration C# (CSharp) Метод

GetFieldEnumeration() статический приватный Метод

static private GetFieldEnumeration ( IWorkspace theWS, String which, AttributeMappingData theAMap ) : ICodedValueDomain
theWS IWorkspace
which String
theAMap AttributeMappingData
Результат ICodedValueDomain
    internal static ICodedValueDomain GetFieldEnumeration(IWorkspace theWS, String which, AttributeMappingData theAMap)
    {
      IDomain theD;
      ICodedValueDomain theCVD = null;

      IWorkspaceDomains theDWS = (IWorkspaceDomains)theWS;

      if (which == "Source")
      {
        theD = theDWS.get_DomainByName(theAMap.srcEnum);
      }
      else
      {
        theD = theDWS.get_DomainByName(theAMap.destEnum);
      }

      if (theD != null) { theCVD = (ICodedValueDomain)theD; }

      return theCVD;
    }