public A this[string key]
来源:互联网 发布:icsd数据库下载 编辑:程序博客网 时间:2024/03/29 18:26
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication13{ class Program { static void Main(string[] args) { C c = new C(); Console.Write(c["test2"].Name); } } class A { private string name; public A(string names) { name = names; } public string Name { get{return name;} } } class C { public Dictionary<string, A> test = new Dictionary<string, A>(); public C() { test.Add("test",new A("testValues")); test.Add("test2", new A("test2Values")); } public A this[string key] { get { A value = test.Where(q => q.Key == key).Select(q => q.Value).FirstOrDefault(); //get all keys return value; } } }}
- public A this[string key]
- SSH error:a public key file has not been specified by this session
- SSH error:a public key file has not been specified by this session
- SSH error:a public key file has not been specified by this session
- SSH error:a public key file has not been specified by this session
- SSH error:a public key file has not been specified by this session
- SecureCRT A public key file has not been specified by this session...
- public static String toHexStr(byte[] key) {
- gitorious Add a new public SSH key
- public virtual T Get<T>(string key, T defaultValue)
- public static string a与sting a的区别
- $this->$key
- Public Key Infrastructure
- SSH Public Key Authentication
- OpenSSH Public Key Authentication
- SFTP install Public key
- Android marketplace - public key
- openssl - 获得public key
- JAVA泛型简析
- 统计测试
- C语言函数集(十四)
- 写写这几年的工作经历
- FPGrowth 实现
- public A this[string key]
- 总结Windbg常用命令
- 技术族谱:软件开发相关知识体系的整理心得(图)
- 1002. A+B for Polynomials (25)
- Excel 英文月份转换为数值月份(亲自实践)
- C语言函数集(十五)
- JavaScript中for..in循环陷阱
- Xcode5 “No matching provisioning profiles found issue” (but good at xcode4)
- 13个mysql数据库的实用SQL小技巧