Esempio n. 1
0
            string IDataRecord.GetName(int i)
            {
                var em = hask.GetEnumerator();

                while (em.MoveNext())
                {
                    if (em.Current.Value == i)
                    {
                        return(em.Current.Key);
                    }
                }
                return(null);
            }
Esempio n. 2
0
 public System.Collections.IEnumerator GetEnumerator()
 {
     return(data_.GetEnumerator());
 }
 public System.Collections.Generic.IEnumerator <System.Collections.Generic.KeyValuePair <string, Value> > GetEnumerator()
 {
     return(Properties.GetEnumerator());
 }
Esempio n. 4
0
        static int _m_GetEnumerator(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            System.Collections.Generic.Dictionary <int, object> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <int, object>)translator.FastGetCSObj(L, 1);


            try {
                {
                    System.Collections.Generic.Dictionary <int, object> .Enumerator __cl_gen_ret = __cl_gen_to_be_invoked.GetEnumerator(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Esempio n. 5
0
        private void UpdateDatabase(System.Collections.Generic.Dictionary <DF3DFeatureClass, IRowBufferCollection> rowsMap)
        {
            System.Collections.Generic.Dictionary <DF3DFeatureClass, IRowBufferCollection> .Enumerator enumerator = rowsMap.GetEnumerator();
            if (!enumerator.MoveNext())
            {
                return;
            }
            System.Collections.Generic.KeyValuePair <DF3DFeatureClass, IRowBufferCollection> current = enumerator.Current;
            DF3DFeatureClass key          = current.Key;
            int            count          = SelectCollection.Instance().GetCount(false);
            EditParameters editParameters = new EditParameters(key.GetFeatureClass().GuidString);

            editParameters.connectionInfo = key.GetFeatureClass().DataSource.ConnectionInfo.ToConnectionString();
            editParameters.datasetName    = key.GetFeatureClass().FeatureDataSet.Name;
            editParameters.geometryMap    = rowsMap;
            editParameters.nTotalCount    = count;
            editParameters.TemproalTime   = this._time;
            IBatcheEdit batcheEdit = BatchEditFactory.CreateBatchEdit(count);

            batcheEdit.BeginEdit();
            batcheEdit.DoWork(EditType.ET_UPDATE_GEOMETRY, editParameters);
            batcheEdit.EndEdit();
        }