Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
6
Answers
User-defined variable types
Mike Smith
14y
7.7k
1
Reply
A useful construct in Delphi (Object Pascal) is:
type
TNumColors = 1..256;
var
numColors: TNumColors;
This defines numColors to a restricted range of integers and allows range checking.
How do you do this in C# please?
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
How can write ASCII characters to serial port
How to connect remotely C# and Mysql ( HTTP tunneling ) using MySql Connector