惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Exploit Database - CXSecurity.com
A
Arctic Wolf
K
Kaspersky official blog
T
Threat Research - Cisco Blogs
PCI Perspectives
PCI Perspectives
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
U
Unit 42
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy & Cybersecurity Law Blog
O
OpenAI News
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
Cisco Blogs
AWS News Blog
AWS News Blog
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
美团技术团队
T
Threatpost
S
Schneier on Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Cyber Attacks, Cyber Crime and Cyber Security
Last Week in AI
Last Week in AI
C
CERT Recently Published Vulnerability Notes
Blog — PlanetScale
Blog — PlanetScale
C
Cybersecurity and Infrastructure Security Agency CISA
F
Full Disclosure
博客园_首页
N
Netflix TechBlog - Medium
Security Latest
Security Latest
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Register - Security
The Register - Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Recent Announcements
Recent Announcements
博客园 - Franky
P
Palo Alto Networks Blog
Project Zero
Project Zero
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Cisco Talos Blog
Cisco Talos Blog
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 【当耐特】
GbyAI
GbyAI

博客园 - StephenJu

EntLib--Unity Application Block 1.x DevExpress杂项 .Net异步机制 简单的异步调用 按s1_Name+uuid为一组拆分DS 枚举 分割dataset:待改进... 序列化 DataGridViewComboBoxColumn的使用 datagridview数据验证 通过关键字查找到dgv相关记录后定位 禁止一个程序启动多个实例 将文本文件的内容写进某个表中 获取Assembly的运行路径 关于DataTable里大批量查找的更快速的方法 抽象类 IO DynamicCreateMenu DataTable的简单方法
获取ArrayList中的数据(foreach)
StephenJu · 2008-05-26 · via 博客园 - StephenJu

        public class PositionData
        {
            
private string name; //字段
            private string ticker;//字段
            private string shares;//字段

            
public PositionData()
            {

            }

public PositionData(string name, string ticker, string shares)
            {
                
this.name = name;
                
this.ticker = ticker;
                
this.shares = shares;
            }
public string Name //属性
            {
                
get
                {
                    
return name;
                }
            }
public string Ticker //属性
            {
                
get
                {
                    
return ticker;
                }
            }
public string Shares //属性
            {
                
get
                {
                    
return shares;
                }
            }
        }

        ArrayList values 

= new ArrayList();
        values.Add(
new PositionData("Microsoft""Msft""150 共享")); 
        values.Add(
new PositionData("Intel""Intc""25 共享")); 
        values.Add(
new PositionData("Dell""Dell""115 共享"));
        
foreach (PositionData da in values)
        {
           
if (da.Name == "Microsoft")
              MessageBox.Show(da.Name.ToString()
+" "+da.Ticker.ToString()+" "+da.Shares.ToString(),"Info");
        }
//******************************使用泛******************************//
        
    List
<PositionData> tmp = new List<PositionData>();
        tmp.Add(
new PositionData("Microsoft""Msft""150 共享"));
        tmp.Add(
new PositionData("Intel""Intc""25 共享"));
        tmp.Add(
new PositionData("Dell""Dell""115 共享"));
        
for (int i = 0; i < tmp.Count; i++)
            MessageBox.Show(tmp[i].Name 
+ " " + tmp[i].Ticker + " " + tmp[i].Shares, "Info");