コード例 #1
0
#pragma warning disable CS1574 // XML comment has cref attribute 'isKeyValueColumn(imbSCI.Data.collection.PropertyEntryColumn)' that could not be resolved
        /// <summary>
        /// Get all non value (<see cref="aceCommonTypes.extensions.data.PropertyEntryColumnExtensions.isKeyValueColumn(imbSCI.Data.collection.PropertyEntryColumn)"/> columns into <see cref="PropertyCollection"/>
        /// </summary>
        /// <param name="key">The key.</param>
        /// <returns></returns>
        public PropertyCollection GetMetaForKey(Object key)
#pragma warning restore CS1574 // XML comment has cref attribute 'isKeyValueColumn(imbSCI.Data.collection.PropertyEntryColumn)' that could not be resolved
        {
            var                pe     = entries[key];
            Object             input  = null;
            PropertyCollection output = new PropertyCollection();

            foreach (DictionaryEntry pair in pe)
            {
                input = pair.Value;
                Boolean copyOk = true;
                if (input is PropertyEntryColumn)
                {
                    PropertyEntryColumn input_PropertyEntryColumn = (PropertyEntryColumn)input;
                    if (input_PropertyEntryColumn.isKeyValueColumn())
                    {
                        copyOk = false;
                    }
                }
                if (copyOk)
                {
                    output.Add(pair.Key, pair.Value);
                }
            }
            return(output);
        }