本文介绍了(Delphi-like)有限边界类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 据我所知,没有类似的方法可以在C#中使用Delphi代码复制 ...这是真的吗? 类型 IntRange = -5..5; CharRange =''a''..''z''; TColors =(红色,白色,绿色,蓝色,黄色); ColorRange =白色......蓝色; As far as I can see, there is no similar way of replicating thefollowing Delphi-code in C#... Is that true? typeIntRange = -5..5;CharRange = ''a''..''z''; TColors = (Red, White, Green, Blue, Yellow);ColorRange = White..Blue; 推荐答案 你可能能够在.NET 2.0中编写一个通用的,如果这是任何 的帮助。我不知道它真的值得它... Jon You may well be able to write a generic one in .NET 2.0, if that''s anyhelp. I don''t know that it would really be worth it though... Jon 这篇关于(Delphi-like)有限边界类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-30 09:46