DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: melqui
今日帖子: 18
在线用户: 20
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 siaosa (siaosa) ★☆☆☆☆ -
盒子活跃会员
2022/5/19 14:39:23
标题:
将一个C#类改成Delphi的 浏览:956
加入我的收藏
楼主:     public class TableInfo
    {
        string SID;
        IList<ColumnInfo> columns;
        
        public IList<ColumnInfo> Columns
        {
          get { return columns; }
        }
        public List<ColumnInfo> Column2;
     }
各位老大,这个C#类怎么改成Delphi的?主要是这两个List<>类型不知道要怎么写
----------------------------------------------
-
作者:
男 doersoft (hnysoft.com) ★☆☆☆☆ -
普通会员
2022/5/19 14:45:42
1楼: 用泛型呀,这个太简单了
----------------------------------------------
delphi|vue|golang hnysoft|hnyerp+mes+srm
作者:
男 abcjingtong (jingtong) ★☆☆☆☆ -
普通会员
2022/5/19 16:49:44
2楼: uses
  Generics.Collections;

TableInfo = class(TObject)
private
  SID: string;
  columns: TObjectList<ColumnInfo>;
public
  property Columns: TObjectList<ColumnInfo> read columns;
end;
----------------------------------------------
18114532@qq.com
作者:
男 tulater (tulater) ★☆☆☆☆ -
普通会员
2022/5/19 18:23:42
3楼: 谢谢分享abcjingtong (jingtong)
----------------------------------------------
http://www.cnblogs.com/tulater/
作者:
男 siaosa (siaosa) ★☆☆☆☆ -
盒子活跃会员
2022/5/25 14:08:10
5楼: 谢谢 abcjingtong (jingtong)
----------------------------------------------
-
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行66.40625毫秒 RSS