zoukankan      html  css  js  c++  java
  • C# Dictionary 字典用法 记录

    Dictionary 使用

    using System.Collections.Generic;

    Create Dictionary

    Dictionary<decimal, int> dicCIUType = new Dictionary<decimal, int>();

    Add to Dictionary

    dicCIUType.Add(id, Type);

    Search in Dictionary

                foreach (KeyValuePair<decimal, int> kvp in dic)

                {

                    if (kvp.Key == id)

                    {

                        continue;

                    }

                    if (kvp.Value == Type)

                    {

                        return false;

                    }

                }

  • 相关阅读:
    iOS中图片与视频一次性多选
    UIImagePickerController Class
    1月16日
    10月20日
    1月14日
    1月13日
    1月12日
    1月11日
    课程评价与建议
    加分总结
  • 原文地址:https://www.cnblogs.com/mantian/p/2844489.html
Copyright © 2011-2022 走看看