DstCompare() static private méthode

static private DstCompare ( string strA, string strB ) : int
strA string
strB string
Résultat int
Exemple #1
0
 public int IndexOfDataSetColumn(string dataSetColumn)
 {
     if (!string.IsNullOrEmpty(dataSetColumn))
     {
         int count = Count;
         for (int i = 0; i < count; ++i)
         {
             if (0 == ADP.DstCompare(dataSetColumn, _items[i].DataSetColumn))
             {
                 return(i);
             }
         }
     }
     return(-1);
 }
Exemple #2
0
 public int IndexOfDataSetColumn(string dataSetColumn)
 {
     if (!ADP.IsEmpty(dataSetColumn))
     {
         int count = this.Count;
         for (int i = 0; i < count; i++)
         {
             if (ADP.DstCompare(dataSetColumn, this.items[i].DataSetColumn) == 0)
             {
                 return(i);
             }
         }
     }
     return(-1);
 }
 /// <include file='doc\DataTableMappingCollection.uex' path='docs/doc[@for="DataTableMappingCollection.IndexOfDataSetTable"]/*' />
 public int IndexOfDataSetTable(string dataSetTable)
 {
     if (!ADP.IsEmpty(dataSetTable))
     {
         for (int i = 0; i < Count; ++i)
         {
             string value = ((DataTableMapping)items[i]).DataSetTable;
             if ((null != value) && (0 == ADP.DstCompare(dataSetTable, value)))
             {
                 return(i);
             }
         }
     }
     return(-1);
 }
Exemple #4
0
 /// <include file='doc\DataColumnMappingCollection.uex' path='docs/doc[@for="DataColumnMappingCollection.IndexOfDataSetColumn"]/*' />
 public int IndexOfDataSetColumn(string dataSetColumn)
 {
     if (!ADP.IsEmpty(dataSetColumn))
     {
         int count = Count;
         for (int i = 0; i < count; ++i)
         {
             if (0 == ADP.DstCompare(dataSetColumn, ((DataColumnMapping)items[i]).DataSetColumn))
             {
                 return(i);
             }
         }
     }
     return(-1);
 }
Exemple #5
0
 public int IndexOfDataSetTable(string dataSetTable)
 {
     if (!string.IsNullOrEmpty(dataSetTable))
     {
         for (int i = 0; i < Count; ++i)
         {
             string value = _items[i].DataSetTable;
             if ((null != value) && (0 == ADP.DstCompare(dataSetTable, value)))
             {
                 return(i);
             }
         }
     }
     return(-1);
 }
 public int IndexOfDataSetTable(string dataSetTable)
 {
     if (!ADP.IsEmpty(dataSetTable))
     {
         for (int i = 0; i < this.Count; i++)
         {
             string strB = this.items[i].DataSetTable;
             if ((strB != null) && (ADP.DstCompare(dataSetTable, strB) == 0))
             {
                 return(i);
             }
         }
     }
     return(-1);
 }
        private NameValuePermission CheckKeyForValue(string keyInQuestion)
        {
            NameValuePermission[] valuetree = _tree; // _tree won't mutate but Add will replace it
            if (null != valuetree)
            {
                for (int i = 0; i < valuetree.Length; ++i)
                {
                    NameValuePermission permitValue = valuetree[i];
#if DATAPERMIT
                    Debug.WriteLine("DBDataPermission value: <" + permitValue._value + ">");
#endif
                    if (0 == ADP.DstCompare(keyInQuestion, permitValue._value))
                    {
                        return(permitValue);
                    }
                }
            }
            return(null);
        }