S
SpotNet
Hello NewsGroup,
More curiosity than actuality for now anyway, just wanted to ask if it's
possible to extend C# by creating custom made key words and statements? If
it is possible, what would I have to consider if I wanted to build a
customised object for loop? Being the foreach loop in 'reverse'. Example;
private MyClassCollection mccol = new MyClassCollection();
mccol.Refresh();
forall (this.mccol on MyClass myclass)
{
//Do stuff the other way....
}
The custom key words being 'forall' and 'on'. More technical curiosity than,
why would I want to do that for?
Regards,
SpotNet
More curiosity than actuality for now anyway, just wanted to ask if it's
possible to extend C# by creating custom made key words and statements? If
it is possible, what would I have to consider if I wanted to build a
customised object for loop? Being the foreach loop in 'reverse'. Example;
private MyClassCollection mccol = new MyClassCollection();
mccol.Refresh();
forall (this.mccol on MyClass myclass)
{
//Do stuff the other way....
}
The custom key words being 'forall' and 'on'. More technical curiosity than,
why would I want to do that for?
Regards,
SpotNet