R
Robert Warnestam
Hi,
I've just switched from Delphi to Visual Studio and I'm wondering how to use
enumerations in loops.
In Delphi you declare the enumation as
TMyRole= ( wrSystemNet=1,wrPrivateNet,wrWarnestamNet, wrFamilyTreeNet );
and this can be used in a loop as
role: TMyRole;
for role:=Low(TMyRole) to High(TMyRole) do begin
...
end;
Can this be done in C#?
Thanks
Robert Warnestam
I've just switched from Delphi to Visual Studio and I'm wondering how to use
enumerations in loops.
In Delphi you declare the enumation as
TMyRole= ( wrSystemNet=1,wrPrivateNet,wrWarnestamNet, wrFamilyTreeNet );
and this can be used in a loop as
role: TMyRole;
for role:=Low(TMyRole) to High(TMyRole) do begin
...
end;
Can this be done in C#?
Thanks
Robert Warnestam