Can I have fixed typed ArrayList in C#, just like C++?
来源:互联网 发布:paxos算法 活锁 编辑:程序博客网 时间:2024/06/05 15:40
http://stackoverflow.com/questions/2360747/can-i-have-fixed-typed-arraylist-in-c-just-like-c
You could use a List. The List class takes advantage of generics to make a strongly typed collection.
To use, just call new List< Type you want to use >() like this:
List<string> myStringList = new List<string>();
MSDN has a quick article on some ways you can make collections thread safe.
0 0
- Can I have fixed typed ArrayList in C#, just like C++?
- Just Thinking In C
- I was just like a frog in the well
- Can a GridView have a footer and header just like ListView?
- How can I convert String to Int in C#?
- IDE - How can I permanently have line numbers in IntelliJ?
- Value-typed Field of a Reference-typed Argument (C#)
- I am just in
- can i get your help in time!!!~~i wish i will be have a goodluck!~~
- Ruby-like nil messaging in Objective-C
- How can I convert a floating-point value to an integer in C?
- How can I get the IPv4 address of an interface in linux from C code ?
- can I read/write the routing table in C without using system() command?
- Thinking in C++, Part I
- Embedding Python in C/C++: Part I
- C#-ArrayList
- C#ArrayList
- C#-ArrayList
- How to make two <div>…</div> in the same row?
- Sending E-mail using C#
- Can we call the Method of a controller from another controller in asp.net MVC?
- Lambda Expression of Select * from TableName
- Subsets
- Can I have fixed typed ArrayList in C#, just like C++?
- Can a DateTime be null?
- HOW? Controller return nothing/current view
- OSX: 10.10 Yosemite Developer Preview 2安装的一个注意事项
- 树和二叉树
- 增加mysql的最大连接数
- PHP判断表单复选框选中状态的例子
- 1.普通工厂模式
- java实现页面访问量统计的实例