M
Mr. X.
Hello.
I would like to use linq in following code.
public class MyClssIndexer
{
public MyClss this[int myID]
{
get {
...
}
}
}
MyNewClss MyClssIndexer;
....
and in code :
var a = from MyClss c in MyNewClss ... // this is not correct code.
How can I search elements by Linq, if I, i.e have a class that can be
reached by an index :
MyNewClss[1] MyNewClss[2] , MyNewClass[3] etc...
(What is the correct syntax for linq?)
Any sample would be fine.
Thanks![Smile :) :)](/styles/default/custom/smilies/smile.gif)
I would like to use linq in following code.
public class MyClssIndexer
{
public MyClss this[int myID]
{
get {
...
}
}
}
MyNewClss MyClssIndexer;
....
and in code :
var a = from MyClss c in MyNewClss ... // this is not correct code.
How can I search elements by Linq, if I, i.e have a class that can be
reached by an index :
MyNewClss[1] MyNewClss[2] , MyNewClass[3] etc...
(What is the correct syntax for linq?)
Any sample would be fine.
Thanks
![Smile :) :)](/styles/default/custom/smilies/smile.gif)